travis-pre-release

1.4.6 • Public • Published

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 travis-pre-release

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

Dependencies (9)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i travis-pre-release

    Weekly Downloads

    0

    Version

    1.4.6

    License

    MIT

    Unpacked Size

    24.5 kB

    Total Files

    9

    Last publish

    Collaborators

    • travis.xu