Prepare a Release
Workflow for cutting a versioned release
CLAUDE.md
When preparing a release:
- Ensure main is green: all tests pass, CI is clean, no known blocking bugs.
- Determine the version number based on the changes since the last release (major, minor, or patch).
- Update the changelog with all user-facing changes, grouped by type (Added, Changed, Fixed, Removed).
- Update the version number in package.json, version files, or wherever it’s tracked.
- Create a single release commit: “Release vX.Y.Z”.
- Tag the commit:
git tag -a vX.Y.Z -m "Release vX.Y.Z". - Push the commit and tag:
git push origin main --tags. - Verify the release pipeline runs successfully.
Copy this workflow into your CLAUDE.md or agent config file so your agent follows this process automatically.