@shelf/ci-utils

0.3.0 • Public • Published

@shelf/ci-utils

Install

$ npx -p=@shelf/ci-utils <cmd> [args...]

Usage

Get latest git tag version

Set the RELEASE_VERSION to .env file in your project.

Applicable for master branch only. For example, if you have a git tag v1.0.0 -> 1.0.0.

For other branches it will return latest.

npx -p=@shelf/ci-utils get-git-version

Get AWS SSM parameter

Set the SSM parameter name to .env file in your project. By default, It would append the ENVIRONMENT to the parameter name.

Yuo can override it by passing the whole parameter name in /<env>/<param-name> format (allowed envs: prod, staging).

npx -p=@shelf/ci-utils get-ssm-param <env-name> <param-name>

# Given: the /prod/s3_bucket parameter in SSM equals to 'my-prod-bucket' & ENVIRONMENT=prod
npx -p=@shelf/ci-utils get-ssm-param MY_PARAM s3_bucket # /prod/s3_bucket MY_PARAM=my-prod-bucket in .env
npx -p=@shelf/ci-utils get-ssm-param MY_PARAM /staging/s3_bucket # /staging/s3_bucket MY_PARAM=stage_bucket in .env

Publish

$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags

License

MIT © Shelf

Readme

Keywords

none

Package Sidebar

Install

npm i @shelf/ci-utils

Weekly Downloads

1,692

Version

0.3.0

License

MIT

Unpacked Size

5.72 kB

Total Files

11

Last publish

Collaborators

  • vladmarchuk
  • vadymaslovskyi
  • marianna-milovanova
  • petro.bodnarchuk
  • kateryna-kochina
  • maksym.tarnavskyi
  • andrii-nastenko
  • mykhailo.yatsko
  • ahavrysh
  • nikita_shelf
  • maciej.orlowski
  • monopotan
  • andrew214
  • bogdan.kolesnyk
  • kristina.zhak
  • anton-russo
  • mmazurowski
  • mateuszgajdashelf
  • kchlon
  • dmytro.harazdovskiy
  • duch0416
  • i5adovyi
  • olesiamuller
  • mykola.khytra
  • yuliiakovalchuk
  • el_scrambone
  • bodyaflesh
  • andriisermiahin
  • mpushkin
  • batovpavlo
  • domovoj
  • oleksii.dymnich
  • dima-bond
  • maksym.hayovets
  • oles.zadorozhnyy
  • ss1l
  • gemshelf
  • hartzler
  • vladgolubev
  • hmelenok
  • knupman
  • maaraanas
  • terret
  • chapelskyi.slavik
  • pihorb
  • irynah
  • diana.kryskuv
  • andy.raven
  • rafler
  • sskalp88
  • demiansua
  • yuriil
  • ktv18
  • drews_abuse
  • rostyslav-horytskyi
  • whodeen