1.1 KiB
1.1 KiB
Create a new release for this project.
Pre-flight
- Worktree guard: If the working directory is inside
.claude/worktrees/, STOP and tell the user: "Releases must be created from a non-worktree session on main. Exit this worktree or start a new session, then run /release." Do not proceed. - Verify you are on
main. If not, STOP. - Verify there are no uncommitted changes. If there are, STOP — they should go through a PR.
- Run
git pull --ff-onlyon main. Fetch tags from all remotes.
Release
- Review commits since the last tag. Recommend a semver bump:
- major: breaking/incompatible API changes
- minor: new features, meaningful new behavior
- patch: bug fixes, docs, refactoring with no new features Present the proposed version, bump rationale, and commit list. Wait for user approval.
- Tag the new version. Push the tag to all remotes (origin, gitea).
- Generate release notes grouped by type (features, fixes, chores).
- Create a GitHub release with
gh release create. - Create a Gitea release with
tea releases createusing the same notes. - Report both release URLs and confirm all remotes are up to date.