stop using npm version, use release-me
Automatic versioning and CHANGELOG generation.
How it works:
- when you're ready to release to npm:
git checkout master; git pull origin master
run release-me
git push --follow-tags origin master; npm publish
release-me
does the following:
- bumps the version in package.json/bower.json (based on your commit history)
- uses conventional-changelog (with conventional-changelog-release-me preset) to update CHANGELOG.md
- commits package.json (et al.) and CHANGELOG.md
- tags a new release
###Installation
As npm run script
Install and add to devDependencies:
npm i --save-dev release-me
Add an npm run script to your package.json:
{
"scripts": {
"release": "release-me"
}
}
Now you can use npm run release in place of npm version.
This has the benefit of making your repo/package more portable, so that other developers can cut releases without having to globally install release-me
their machine.
As global bin
Install globally (add to your PATH):
npm i -g release-me
Now you can use release-me
in place of npm version.
This has the benefit of allowing you to use release-me
on any repo/package without adding a dev dependency to each one.