rustfs-release-version-bump
GitHub用于 RustFS 项目发布流程的版本号更新与安装引用对齐。支持 prepare 和 post-release 阶段,精确修改 Cargo.toml、README、Helm Chart 及 RPM spec 等文件版本,并执行严格验证确保一致性。
触发场景
安装
npx skills add rustfs/rustfs --skill rustfs-release-version-bump -g -y
SKILL.md
Frontmatter
{
"name": "rustfs-release-version-bump",
"description": "Prepare an exact RustFS Cargo version or align installation references after publication. Use for requested version bumps or the release workflow."
}
Release Version Files
Require an exact target; ask if missing or ambiguous. Reject targets containing -preview: those are tag-only. Infer post-release only from an explicit request or parent workflow; otherwise use prepare. Delivery defaults to local edit/verify; commit, push, PR, and merge follow existing authorization and Git rules.
| Stage | Files and constraints |
|---|---|
prepare |
Only Cargo.toml and Cargo.lock: workspace package, internal dependency, and workspace member versions become <target>. External dependencies stay unchanged. |
post-release |
Only README.md, README_ZH.md, flake.nix, helm/rustfs/Chart.yaml, and rustfs.spec. Cargo may already target the next release; leave it untouched. |
Before installation edits, verify the exact non-preview Release, downloadable assets/source archive, pullable rustfs/rustfs:<target> image manifest, and published Helm chart. Block on missing artifacts. Do not downgrade defaults if a newer deliverable superseded the target. Preview preparation retains the previous published installation references; follow-up commits never replace either validated tag.
Packaging policy:
- Docker image tags have no
vprefix. Derive chart/app versions withscripts/helm_chart_version.sh <target>(beta.N -> 0.N.0; other versions unchanged). Helm CI derives versions from the final tag, so no early chart bump is required. - RPM
Versionis numeric;Releaseis the prerelease suffix or1for stable. ExpandedSource0and the unpack directory must resolve to the exact target including its suffix. Add the changelog entry using current git identity, date, and target; never copy an example identity/date. - Changing these mappings requires explicit confirmation.
Verification follows root tiers: prepare validates Cargo metadata with the updated lockfile and checks every workspace/internal version with no unrelated lockfile updates. post-release renders Helm with the verified image, runs scripts/test_helm_chart_version.sh for chart version edits, and checks README, Nix, and RPM references. Run git diff --check; report unresolved required checks as BLOCKED without unrelated fixes.
For authorized commits, keep stages separate: chore(release): prepare <target> or chore(release): align installation references for <target>. Report target/stage, changed files, verification, material uncertainty, and actual commit/push/PR state.
版本历史
-
6f582b0
当前 2026-10-20 01:28
重构了版本准备逻辑,细化了 prepare 和 post-release 阶段的文件约束与验证步骤;明确禁止使用包含 -preview 的目标版本;增加了 Helm Chart 版本推导脚本的使用说明及更严格的变更检查机制。
-
5f4d5e8
2026-09-28 15:59
将默认文件范围拆分为 prepare 和 post-release 两个阶段;新增对 Docker 标签格式、Helm 版本映射及 Spec Release 字段的硬性规则;增加发布前置条件验证逻辑。
-
1880b42
2026-09-23 05:26
将完整发布流程(含 commit/push/PR)拆分为独立的版本提升技能,当前仅负责版本文件准备与验证,发布标签归属其他技能。
- 0fe41da 2026-08-29 02:10
- 0d129ec 2026-08-20 14:32


