You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,14 +89,17 @@ npm run update-api # Update the auto-generated API client
89
89
### CI/CD
90
90
91
91
-**CI**: Runs on every push to `main` and on PRs. Builds and tests across Node.js 18, 20, and 22.
92
-
-**Publish**: Triggered on GitHub release creation. Builds, tests, and publishes to npm with provenance.
92
+
-**Release**: Uses [changesets](https://github.com/changesets/changesets) for automated versioning and npm publishing.
93
93
94
-
To publish a new version:
95
-
1. Update the version in `package.json`
96
-
2. Create a GitHub release with a tag matching the version (e.g. `v1.1.0`)
97
-
3. The publish workflow will automatically build and push to npm
94
+
#### Publishing a new version
98
95
99
-
**Prerequisite**: Add an `NPM_TOKEN` secret to your GitHub repository settings.
96
+
1. When making changes, run `npx changeset` and describe your change (select `patch`, `minor`, or `major`)
97
+
2. Include the generated `.changeset/*.md` file in your PR
98
+
3. CI enforces that every PR includes a changeset (use `npx changeset --empty` for changes that don't need a version bump, like docs or CI)
99
+
4. When PRs are merged to `main`, the release workflow automatically creates a **"chore: version packages"** PR that bumps the version and updates `CHANGELOG.md`
100
+
5. Merging that PR publishes to npm with provenance
101
+
102
+
**Prerequisite**: An `NPM_TOKEN` secret must be configured in the GitHub repository settings.
0 commit comments