Skip to content

Append pre-release build number to version in node.js package.json projects

License

Notifications You must be signed in to change notification settings

mirchow/release-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

release-version

Release and build number appender to package.json version

If you use Artifactory on premise to publish node projects, you need to update the version each time you publish new builds.

This package allow Jenkins or other build system to update the version in your project with the current build number given by jenkins optionally with a pre-release version.

Reference: semver.org spec

Getting Started

This package is for node.js projects that contain package.json files.

npm install -g release-version

Usage Examples

Once the package has been globally installed it may be used from from any path

release-version -r 2

given current version 1.0.0 will create version: 1.0.0-rc.2

release-version -b build.420 -p /path/to/project

version 1.0.0 will result in: 1.0.0+build.420 on the package.json located in /path/to/project

release-version -r alpha -b 2 --pre ''

version 1.0.0 will result in: 1.0.0-alpha+2

release-version -r beta --pre ''

version 1.0.0 will result in: 1.0.0-beta

About

Append pre-release build number to version in node.js package.json projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published