conventional-bump
v1.0.6
Published
bump package.json version according to conventional-changelog
Downloads
52
Maintainers
Readme
conventional-bump
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