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
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