Use when user asks to release, bump, or publish a new version (major, minor, or patch) of this Rust project
Automates releasing a new version of the hang Rust CLI project.
Ask the user which version component to bump if not specified:
1.2.3 → 2.0.0)1.2.3 → 1.3.0)1.2.3 → 1.2.4)Read Cargo.toml to get the current version. Compute the new version and confirm with the user before making any changes:
Current version:
0.1.0. Bumping minor →0.2.0. Proceed?
Only after user confirms:
Cargo.toml with new version stringCargo.lock — run cargo buildcargo fmt --check
cargo clippy
cargo test
Fix any issues before continuing.README.md — set --tag vX.Y.Z in the install section to the new versiongit add Cargo.toml Cargo.lock README.md
git commit -m "Bump version to vX.Y.Z"
git tag vX.Y.Z
git push && git push --tags
gh release create vX.Y.Z --generate-notes