- Merge feature branches, bug fixes, and whatever changes into
master
after CI passes and PRs are approved - Create a new branch off
master
when you're ready to release a new version - On this branch run
npm version [...]
(seenpm-version
docs for more info) which will bump the version inpackage.json
and make a tag (for examplenpm version patch -m "Bump for 3.1.2"
). Follow SemVer rules for patch/minor/major. - Push the version commit and the tag
git push && git push --tags origin
- Open Pull Request, "Rebase and merge" after approved
- Create a new release in the Github UI, give the release a name and add release notes (creating the release will kick off npm publish)
- Checkout the
master
branch and pull the latest by runninggit checkout master && git pull
- Publish the new version to npmjs.com using the
npm publish
command