Skip to content

bump package.json version according to conventional-changelog

License

Notifications You must be signed in to change notification settings

guillaumearm/conventional-bump

Repository files navigation

conventional-bump

Commitizen friendly

bump package.json version according to conventional-changelog.

conventional-bump is built on conventional-recommended-bump.

Purpose of this library is to automatically bump the package.json version number.

Installation

$ npm install --save-dev conventional-bump

Usage

$ conventional-bump --help

Usage: index.js [-p preset]

Options:
  --version     Print current version                                  [boolean]
  -h, --help    Show help                                              [boolean]
  -p, --preset  conventional-changelog preset to use        [default: "angular"]

Configuration

in your package.json :

{
  "scripts": {
    "bump": "conventional-bump -p angular",
    "version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md"
  }
}

Publish a npm module

$ npm run bump && npm publish

About

bump package.json version according to conventional-changelog

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published