If you are running on Unix (Mac OSX, Linux), you can run tools/release.sh
that will run all steps for you:
$ tools/release.sh X.Y.Z
-
Make sure all tests are passing:
$ npm test
-
Update the changelog
$ tools/git-changelog X.Y.Z
-
Update the version in package.json
$ npm version --git-tag-version=false X.Y.Z
-
Commit the changes to git
$ git commit ChangeLog.md package.json -m X.Y.Z
-
Create a git tag
$ git tag -a vX.Y.Z -m X.Y.Z
-
Push all changes to the server
$ git push origin master vX.Y.Z
-
Publish the package
npm publish