This project uses release-plan for automated releases.
-
Label your PRs - When creating or reviewing PRs, add one of these labels:
breaking- Major version bump (breaking changes)enhancement- Minor version bump (new features)bug- Patch version bump (bug fixes)documentation- Patch version bump (docs changes)internal- Patch version bump (internal changes, refactoring)
-
Merge to main - When PRs are merged to
main, theplan-releaseworkflow runs automatically. -
Review the Release PR -
release-plancreates a "Release Preview" PR with:- Updated
CHANGELOG.md - Version bumps in
package.json - A
.release-plan.jsonfile
- Updated
-
Merge to publish - When the Release Preview PR is merged, the
publishworkflow:- Publishes to npm
- Creates a GitHub release
- Tags the release
# Check what will be released
npx release-plan explain-plan
# Prepare the release (creates .release-plan.json, updates changelog)
npx release-plan prepare
# Publish (after merging the prepare PR)
npx release-plan publishNPM_TOKENsecret must be configured in GitHub repository settings for publishing- PRs must be labeled before the release can be planned