1.0.0 • Published 4 years ago

package-version-suffix v1.0.0

Weekly downloads
22
License
MIT
Repository
github
Last release
4 years ago

package-version-suffix

Small CLI utility to append version suffix to your monorepo packages, while also keeping the internal references up to date.

How it works

npx package-version-suffix

Running this command in root of your repository will do the following:

Right now only Teamcity supported, using following variables: TC_BUILD_COUNTER, TC_BUILD_BRANCH, TC_REPO_SLUG

  1. Pick up the env variables used to determine versioning strategy
  2. If running on master branch - do nothing, this is stable release, no need to sufix anything
  3. If running on pull branch:
  • if PR branch is version/xxx this is our beta release branch
  • if PR branch is different, this is just a PR build

For beta release: append -beta.{buildCounter} to versions emit npmTag env variable with beta

For regular pull request: append -pull-request.{buildCounter} to versions emit npmTag env variable with pull-XXX where XXX is pull request number

1.0.0

4 years ago

0.3.0

4 years ago

0.2.0

5 years ago

0.1.0

5 years ago