A simple NodeJS script to help make npm releases.
npm install --save-dev shelljs-release
Also, make sure your master branch has upstream-tracking set-up:
git push --set-upstream origin master
In package.json
:
"scripts": [
"test": "... whatever you had here before ...",
"release:major": "release major",
"release:minor": "release minor",
"release:patch": "release patch"
],
Use this by running:
$ npm run release:major # bumps major version & releases
$ npm run release:minor # bumps minor version & releases
$ npm run release:patch # bumps patch version & releases