- Make sure you have access to publish, by running
$ npm access ls-collaborators
. - While on the main branch, with a clean working directory,
$ git checkout -b release
. $ npm run prepare-release
. If that was unsuccessful, investigate. If it was successful, the version is bumped and a new commit exists.- Create a new pull request from this branch. The name of the pull request can be same as the commit message.
- Merge the pull request.
- Switch to the main branch and
$ git pull
. $ git tag v$VERSION
, where$VERSION
is the new version. For example,$ git tag v16.0.0
.$ git push --tags
npm publish