Run yarn postversion. If current branch is main, script creates a new branch (release/$VERSION) and pushes. Otherwise, script creates a new commit on the current branch and pushes.
If previous step created a new branch, then open a PR, get approval, and merge. Releases merged to main are published to npm automatically. Otherwise, trigger the workflow manually from the GitHub Actions panel.
Proposed release process:
yarn version patch
yarn postversion
. If current branch ismain
, script creates a new branch (release/$VERSION
) and pushes. Otherwise, script creates a new commit on the current branch and pushes.main
are published to npm automatically. Otherwise, trigger the workflow manually from the GitHub Actions panel.