| name | version-bump |
| description | Bump version in Cargo.toml |
Version Bump Skill
Use this skill when bumping the version of rhusky.
How to Bump Version
- Edit
Cargo.toml and update the version field
- Run
cargo update --workspace to update Cargo.lock
- Commit with message:
chore(version): bump X.Y.Z -> A.B.C
Version Types
- patch: Bug fixes, minor improvements (0.0.1 -> 0.0.2)
- minor: New features, backward compatible (0.1.0 -> 0.2.0)
- major: Breaking changes (1.0.0 -> 2.0.0)
What NOT to Do
- Do NOT use
cog bump - it creates local tags which conflict with
the CI workflow that creates tags after tests pass
- Do NOT create git tags manually - CI creates tags after merge
- Do NOT push to remote - the user must push manually
Workflow
- Edit
Cargo.toml version field
- Run
cargo update --workspace
- Stage changes:
git add Cargo.toml Cargo.lock
- Commit:
git commit -m "chore(version): bump X.Y.Z -> A.B.C"
- Push the branch or create a PR
- Merge to main
- CI detects version change, creates tag, publishes release
Checking Current Version
grep '^version' Cargo.toml
After Bumping
After committing the bump, verify:
git log -1 --oneline
git diff HEAD~1 --stat
Then push when ready:
git push origin <branch>