/release - Tag and Publish Release
Purpose
Merge PR, tag release, and create GitHub release with changelog notes.
Prerequisites
- •PR exists and all CI checks pass
- •You're ready to release (this is not reversible)
Process
- •
Verify PR status
codegh pr status gh pr checks
Stop if checks are failing.
- •
Merge PR
codegh pr merge --squash --delete-branch
- •
Pull main and verify version
codegit checkout main git pull
Confirm version in pyproject.toml matches intended release.
- •
Create and push tag
codegit tag vX.Y.Z git push origin vX.Y.Z
- •
Create GitHub release
codegh release create vX.Y.Z --title "vX.Y.Z" --notes-file <changelog-section>
Extract the relevant section from CHANGELOG.md for release notes. Mark as prerelease if appropriate (
--prerelease).
Notes
- •CI typically handles PyPI publishing on tag push
- •If release fails, delete the tag before retrying:
code
git tag -d vX.Y.Z git push origin :refs/tags/vX.Y.Z