- run
yarn publish
. This will ask you the new version, login into npm, build the package, commit and tag before pushing to npm. If you want to stop at any moment, you can ctrl-c, and depending on the moment, you'll need to rollback manually. - On github, you need to edit the branch protection rules, and uncheck the option "Do not allow bypassing the above settings".
- Then you can push to github with the tags:
git push upstream HEAD --tags
. This is the only case you're allowed to push directly to github. - Check the option "Do not allow bypassing the above settings" again.
- On github, go to the tags page, then create a new release from the new tag (this is an option in the "..." menu at the right).
- Click "Generate releases notes" then follow the format of previous releases.