- Determine which part of the version you are about to increase. We follow the Versioning & Semver section from the JSCS project.
- Run a bump script via npm. This will commit and tag the changed files:
npm run bump
- will increase the patch version;npm run bump-minor
- will increase the minor version.npm run bump-major
- will increase the major version.
- Push changes and tags:
git push --follow-tags
- Wait until the Travis-CI build finishes. It will publish a new version into npm.
DO NOT USE
npm publish
! If something goes wrong, Travis will tell us. - Done!