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.
$ npm install --save-dev conventional-bump
$ 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"]
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"
}
}
$ npm run bump && npm publish