prerelease-ftw
v0.1.2
Published
Generates a version with prerelease suffix from your current package version and command line arguments
Downloads
136
Readme
Pre-Release FTW!
Generates a version with prerelease suffix based on the current package version and command line parameters. Useful when publishing modules from CI servers.
Install
npm i --save-dev prerelease-ftw
package.json
{
"version": "3.2.0",
"scripts": {
"prerelease": "prerelease"
}
}
Run
npm --silent run prerelease -- build 20
Output
3.2.0-build.20
Continuous Integration FTW!
npm --no-git-tag-version version $(npm --silent run prerelease -- build ${BUILD_NUMBER})
npm publish