File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ # Releasing
2+
3+ This project uses GitHub Actions to publish to npm. The publish workflow runs on two triggers:
4+
5+ - Manually via ` workflow_dispatch `
6+ - Automatically when a GitHub Release is published
7+
8+ ## Steps to cut a release
9+
10+ 1 . ** Decide the new version** . Use ` pnpm version ` to bump the version and create a git tag for it. Commit and push the change and the tag.
11+ 2 . ** Create a GitHub release** . Go to the tags page and create a release using the pushed tag.
12+
13+ ## npm dist-tags
14+
15+ The workflow chooses the npm tag automatically based on the version string:
16+
17+ - ` *-alpha.* ` → published under ` alpha `
18+ - ` *-beta.* ` → published under ` beta `
19+ - ` *-rc.* ` → published under ` next `
20+ - Everything else → ` latest `
21+
22+ So, for prereleases, remember to add the correct suffix to the version (e.g. ` 1.2.3-beta.0 ` ).
You can’t perform that action at this time.
0 commit comments