Create Release
Automate the mechanical parts of cutting a release. The full flow (branch from main, bump [workspace.package].version in Cargo.toml, regenerate Cargo.lock, push, open draft PR) is implemented in scripts/create-release.sh. This skill's job is to collect the version, then invoke the script.
Steps
1. Get the target version
If the user didn't supply a version already, ask: "What version should I bump to?"
The version must be bare semver (e.g. 32.0.0, 31.1.0) — no v prefix. The script re-validates and will reject bad input.
2. Run the script
scripts/create-release.sh <version>
The script will:
- Fail fast if the working tree is dirty.
git fetch origin mainand branchrelease/v<version>fromorigin/main.- Update only the
versionfield in[workspace.package]ofCargo.toml. - Run
cargo update -wto refresh workspace entries inCargo.lock. - Commit (
chore: bump workspace version to <version>), push with-u, and open a draft PR titledchore: release v<version>againstmain.
Return the PR URL from the gh pr create output to the user.
3. On failure
If the script exits non-zero, surface its error to the user and stop — do not try to finish the steps manually without checking in first.
Source: DataDog/libdatadog — distributed by TomeVault.