ワンクリックで
release
Prepare and publish a new release. Use when the user asks to release, cut a release, or publish a new version.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Prepare and publish a new release. Use when the user asks to release, cut a release, or publish a new version.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | release |
| description | Prepare and publish a new release. Use when the user asks to release, cut a release, or publish a new version. |
Release a new version of soft-fido2 using the release script and CI pipeline.
Use this skill when:
Before releasing, verify:
git rev-list --count origin/<default>..HEAD must be 0The release script handles shallow/latest-commit checkouts by fetching full history and tags before comparing against the remote default branch.
Check manually with:
git status --short
git rev-parse --abbrev-ref HEAD
git fetch origin
git rev-list --count origin/master..HEAD
git tag --sort=-creatordate | head -3
git log --oneline v<latest_tag>..HEAD
Use Semantic Versioning (MAJOR.MINOR.PATCH). Determine the bump type by analyzing commits since the last release.
Bump MAJOR when:
BREAKING CHANGE: or ! (for example, feat!: ...)Bump MINOR when:
feat: commits)Bump PATCH when:
fix: commits)docs: commits)refactor: commits)build(deps): or chore(deps): commits)git log v<CURRENT_VERSION>..HEAD --oneline.! or BREAKING CHANGE: -> MAJOR.feat: -> MINOR.Run the release script from a clean checkout. It fetches full history/tags when needed, including when the local checkout was fetched with only the latest commit.
.ci/release.sh
If checking manually:
git status --short
git rev-parse --is-shallow-repository
git fetch --unshallow origin # only if shallow
git fetch --tags origin
git rev-list --count origin/master..HEAD
grep '^version =' Cargo.toml | head -1
git log v<CURRENT_VERSION>..HEAD --oneline
git checkout -b release/v<NEW_VERSION>
Edit the root Cargo.toml and update the version in the [workspace.package] section:
version = "<NEW_VERSION>"
make update-version
This updates soft-fido2 workspace dependency versions and runs cargo update --workspace.
make update-changelog
This runs git cliff -t v<VERSION> -u -p CHANGELOG.md.
git add .
VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -n1)
git commit -m "release: Version $VERSION"
git push -u origin release/v<NEW_VERSION>
Create a pull request to merge into master.
After the PR is merged to master, tagging and releasing is done automatically by CI:
auto-tag.yaml reads the new version from CHANGELOG.md.v<VERSION>.rust.yml to build, test, publish crates to crates.io, and create a GitHub Release.Monitor with:
gh run list --limit 5
Do not manually create tags. CI handles this automatically.
| Mistake | Why it's wrong | Fix |
|---|---|---|
| Manually editing CHANGELOG.md | git-cliff generates it from conventional commits | Use make update-changelog |
| Creating git tags manually | auto-tag.yaml creates signed tags automatically | Just push to master |
| Releasing with dirty working tree | Script will fail or produce incomplete release | Commit or stash changes first |
| Skipping the unshallow check | Shallow clones produce incomplete changelogs | Let .ci/release.sh fetch full history/tags |
Forgetting make update-version after Cargo.toml edit | Version won't propagate to workspace members | Always run make update-version |
| File | Role |
|---|---|
Cargo.toml | Workspace version (single source of truth) |
cliff.toml | git-cliff configuration for changelog generation |
CHANGELOG.md | Generated changelog (auto-tag reads version from here) |
.github/workflows/auto-tag.yaml | Creates signed GPG tag on push to master |
.github/workflows/rust.yml | Builds, tests, publishes to crates.io and GitHub on tag |
Makefile | update-version, update-changelog, and publish targets |
.ci/release.sh | Full release script |
.ci/release.sh fetched themrelease/v<VERSION>Cargo.tomlmake update-versionmake update-changelogrelease: Version <VERSION>| Step | Command |
|---|---|
| Run release script | .ci/release.sh |
| Check current version | grep '^version =' Cargo.toml | head -1 |
| View recent commits | git log v<CUR>..HEAD --oneline |
| Check commits ahead | git rev-list --count origin/master..HEAD |
| Check shallow clone | git rev-parse --is-shallow-repository |
| Unshallow repo | git fetch --unshallow origin && git fetch --tags origin |
| Update version refs | make update-version |
| Update changelog | make update-changelog |
| Commit | git commit -m "release: Version <VER>" |
| Monitor CI | gh run list --limit 5 |