manage-version

Node command line tool for updating package.json version


License
ISC
Install
npm install manage-version@0.1.8

Documentation

Manage Version

Master Status

A node command line tool for managing the version of a package.json.

Installation

npm install -g manage-version

Command

Help

manage-version --help

Update

update [options] <to>

update version of package.json

Options:
-h, --help   output usage information
-b, --branch [branch] source branch for evaluating next version
-t, --token [access token] access token used for github
-o --owner [owner] owner of github repo
-r, --repo [repo] github repo

Examples

  • Perform a minor version update to the project's package.json e.g 2.1.3 -> 2.2.0
manage-version update minor
  • Perform a major, minor, or patch update to the version dependent on the last branch merged into the specified repo
manage-version update github -o procore -r manage-version -t $GITHUB_TOKEN 

Tests

npm run test

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/procore/manage-version. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The package is available as open source under the terms of the MIT License.

About Procore

Procore Logo

Manage Version is maintained by Procore Technologies.

Procore - building the software that builds the world.

Learn more about the #1 most widely used construction management software at procore.com