一键导入
backstage-release
Cut a new Backstage gem release. Bumps version, writes CHANGELOG entry, commits, tags, and pushes to trigger the GitHub Actions publish workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Cut a new Backstage gem release. Bumps version, writes CHANGELOG entry, commits, tags, and pushes to trigger the GitHub Actions publish workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | backstage-release |
| description | Cut a new Backstage gem release. Bumps version, writes CHANGELOG entry, commits, tags, and pushes to trigger the GitHub Actions publish workflow. |
Cut a new release of the Backstage gem. Work through each step in order, confirming with the user before making changes.
Before touching any files, check:
bundle exec rake test — all tests must pass. Stop if any fail.standardrb — no offences. Stop if any fail.git status — working tree must be clean (all changes committed). Stop if dirty.Report results before proceeding.
Read lib/backstage/version.rb to get the current version.
Ask the user: "Current version is X.Y.Z. What should the new version be?"
Follow Semantic Versioning:
Ask: "What should go in the CHANGELOG for this release?"
If the user isn't sure, run git log vPREVIOUS..HEAD --oneline (where PREVIOUS is the last tagged version from git tag --sort=-v:refname | head -1) to show commits since the last release. Summarise them into bullet points grouped as Added / Changed / Fixed / Removed, and confirm with the user before writing.
Edit lib/backstage/version.rb:
module Backstage
VERSION = "NEW_VERSION"
end
Read the current CHANGELOG.md. Add a new section above the most recent release entry (but below ## [Unreleased]):
## [NEW_VERSION] — YYYY-MM-DD
### Added
- ...
### Fixed
- ...
Use today's date. Only include sections (Added / Changed / Fixed / Removed) that have entries. Move anything from ## [Unreleased] into this section and leave ## [Unreleased] empty.
Stage only release files:
git add lib/backstage/version.rb CHANGELOG.md
git commit -m "Release v{NEW_VERSION}"
git tag vNEW_VERSION
git push origin main
git push origin vNEW_VERSION
Pushing the tag triggers the GitHub Actions publish workflow (.github/workflows/publish.yml), which builds and pushes the gem to RubyGems automatically.
Use the CHANGELOG entry for this version as the release notes:
gh release create vNEW_VERSION --title "vNEW_VERSION" --notes "CHANGELOG_NOTES"
Confirm with the user before creating.
After completion, print:
gh release create)gh run list --workflow=publish.yml --limit=1)