- Create a new branch, named
release-v<version>
. - Update
CHANGELOG.md
andgit add
ready for commit on the next step. - Run
yarn version
to bump the version number, commit, and create a tag. - Push the branch, but not yet the tag.
- Create a PR to approve the changes.
- Once approved:
- Update the git tag to the new head of the branch, if necessary.
- Push the git tag (
git push origin tag v<version>
). Doing so triggers the github actions workflow which builds and publishes to npm, and creates a draft GH release. - Merge the PR. (Prefer a genuine merge rather than a squash so that the tagged commit is included in the history.)
- Update the release on github and publish.