- Update the package version in
package.json
and merge that change into themain
branch1. We use Semantic Versioning. - Create a tag pointing at the version-change commit and generate a new GitHub release (details follow). Publishing a GitHub release will kick off a GitHub Action that will do the following:
- Publish the
@hypothesis/frontend-shared
package tonpm
- Deploy the pattern library to https://patterns.hypothes.is
- Publish the
Create a new GitHub release with these values:
- Tag: Create a new tag for the release, targeting the
main
branch (your just-merged version bump should be at the tip)2. The tag should match the version number, e.g.v5.2.1
. - Title: Use the tag name.
- Click the
Auto-generate release notes
button to generate release notes and edit as needed. We use Keep a Changelog formatting.3 - Leave other fields alone/as defaults.
- Check to see if the version has been updated on npm
- Check the contents of the package on UNPKG. The URL pattern is
https://unpkg.com/browse/@hypothesis/frontend-shared@<version>/
, e.g. https://unpkg.com/browse/@hypothesis/[email protected]/
Footnotes
-
Unlike other PRs, a version-bump PR does not require review. But do wait for CI to complete first. ↩
-
You can create a tag manually as a separate step if you want to tag a non-tip commit. ↩
-
You can look at release notes for other recent releases as exemplars. You don't need to include every change (especially, e.g., dependency updates). ↩