一键导入
release
Automate the Ironic release process. Bump version, update CHANGELOG, tag, and push. Use when the user wants to make a new release.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Automate the Ironic release process. Bump version, update CHANGELOG, tag, and push. Use when the user wants to make a new release.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | release |
| description | Automate the Ironic release process. Bump version, update CHANGELOG, tag, and push. Use when the user wants to make a new release. |
| allowed-tools | Bash(git:*,cargo:*), Read, Write, Edit |
| license | MIT |
| metadata | {"author":"ironic","version":"1.0"} |
Automates the Ironic release workflow using Semantic Versioning and Keep a Changelog.
Input: Optionally specify a version bump (major, minor, patch, or a specific version like 0.2.0). If omitted, prompt for the bump type.
Steps
Determine current version
Read the current version from Cargo.toml under [workspace.package]:
grep '^version' Cargo.toml | head -1
Determine new version
If the user provided a bump type (major, minor, patch), compute the new version by parsing the current semver and incrementing the appropriate segment. If the user provided a specific version (e.g., 0.2.0), use it directly. Otherwise prompt with options.
Validate CHANGELOG
Read CHANGELOG.md and check:
## [Unreleased] section exists and has contentUpdate files
Cargo.toml: [workspace.package] version = "<new>"CHANGELOG.md: Replace ## [Unreleased] with:
## [Unreleased]
## [<new-version>] - YYYY-MM-DD
cargo check to verify the workspace compilesCreate release commit and tag
git add Cargo.toml CHANGELOG.md
git commit -m "chore: release v<new-version>"
git tag v<new-version>
Push (ask first)
Ask the user before pushing. If confirmed:
git push origin main --tags
The .github/workflows/release.yml will then run CI, create the GitHub Release, and publish to crates.io.
Output On Success
## Release v<new-version>
- Version bumped: <old> -> <new>
- CHANGELOG updated with release date
- Tag v<new-version> created
- Commit pushed: origin/main
CI will now: verify -> create GitHub Release -> publish to crates.io