update changelog, add git tag, commit and publish the new version to npm in ONE COMMAND
npm install bump-simpleThis package allow you with only one command to automatically:
* Update package.json version
Generate changelog based on all commits messages that begin with
* Add a git tag with version name
* Commit changes
* And finally npm publish
Edit your package.json to add the scripts needed to update your npm package:
`` javascript`
{
...
"scripts": {
...
"bump:major": "node node_modules/bump-simple/bump-simple.js --major", // update to major version
"bump:minor": "node node_modules/bump-simple/bump-simple.js --minor", // # # minor #
"bump:patch": "node node_modules/bump-simple/bump-simple.js --patch", // # # patch #
...
},
...
}
npm run bump:minor` => this will update your package changing the minor version (Eg: v1.1.0 => v1.2.0)
Don't hesitate to write an issue for any request or make a pull request :)