1.0.0 • Published 6 years ago
package-version-suffix v1.0.0
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-suffixRunning 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
- Pick up the env variables used to determine versioning strategy
- If running on
masterbranch - do nothing, this is stable release, no need to sufix anything - If running on
pullbranch:
- if PR branch is
version/xxxthis 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