Once CI on the master branch has successfully run, change directory to a local clone of the repo and run the following commands:
git checkout master
git pull
git clean -fdx
npm install
npm version <increment>
npm publish
git push && git push origin <tag>These steps ensure that you:
- are using the latest from
master; - are not using any cached artifacts;
- are updating the
package.jsonwith the appropriate version number; and - are creating and pushing a tag with the appropriate version number.
Note
Note that <increment> denotes the size of the version increment (typically patch, minor, or major). See NPM docs for more info.
Note
npm version bumps the version number in package.json, commits the change, and then creates (and prints) the corresponding tag.
Note
npm publish will require 2-factor authentication.
Draft a new Release and hit the Generate release notes button. If it looks good, hit the green Publish release button.