| name | release |
| description | Create a new release by bumping version, regenerating dist, running checks, and tagging |
| argument-hint | <version> |
Release
Create a new release for akari-theme.
Arguments
$ARGUMENTS — target version (e.g. 1.18.1). The v prefix is optional and will be normalized.
Steps
- Current state — run
git tag --sort=-v:refname | head -3 to show recent tags, then identify the latest tag and run git log --oneline <latest_tag>..HEAD to show commits since the last release
- Validate — ensure
$ARGUMENTS is provided and is a valid semver greater than the latest tag
- Version bump — update
version in Cargo.toml to the target version
- Regenerate dist — run
cargo run --features generator -- generate --tool all
- Check — run the full verification suite:
cargo clippy --features generator -- -D warnings
cargo fmt -- --check
cargo test --features generator
- Diff guard — run
git diff --stat and confirm only Cargo.toml and Cargo.lock changed
- Commit —
git add Cargo.toml Cargo.lock && git commit -s -m "Prepare for v<version> release"
- Tag —
git tag v<version>
- Push — ask the user for confirmation, then
git push origin main && git push origin v<version>