Prompt file imported from o-o-o-o-o/caddy-hot-reloader (
.github/prompts/release-tag.prompt.md). Copyright stays with the author.
Run the repository release-tag workflow exactly in this order.
- Pre-flight checks:
- Verify current branch is
main. - Verify working tree is clean (or clearly report non-release changes).
- Get latest version tag using:
git tag -l | sort -V | tail -1.
- Suggest next version:
- If branch is
main, increment patch (e.g.,v0.6.1->v0.6.2). - Show proposed version and ask for confirmation before creating tag.
- Generate tag message:
- Collect commits since last tag:
git log <last_tag>..HEAD --oneline. - Build a concise markdown changelog list.
- Ask for confirmation or edits.
- Create and push:
- Create annotated tag.
- Push
mainthen push tag. - If any command fails, stop and explain exactly what failed.
- Build verification reminder:
- Provide the GitHub Actions link and note expected checks.
- Homebrew formula update:
- Compute source tarball SHA256 for the new tag.
- Update
Formula/*.rbURL and SHA256. - Show diff.
- Commit with
chore: update Homebrew formula for <tag> releaseand push.
- Final confirmation output:
- Show latest tag and summarize pushed changes.
- Include any manual follow-ups needed.
Important behavior:
- Use non-interactive git commands.
- Never use destructive git commands.
- If tree is dirty, ask before proceeding.
- Keep prompts concise and require explicit user confirmation before tagging or pushing.