docs: align release skill and release.toml with CI-based crates.io publishing - #63
Merged
Merged
Conversation
…blishing Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The release skill (
.claude/commands/release.md) documented a flow wherecargo release --executepublishes to crates.io locally (withcargo loginas a prerequisite). In reality,.github/workflows/release.ymlhas apublish-cratesjob that publishes all crates in dependency order via theCARGO_REGISTRY_TOKENsecret on tag push — and it has been the actual publish path (v0.7.0/v0.7.1/v0.8.0 all published this way).Worse, the mismatch is a footgun:
release.tomlhadpublish = true, so a successful local publish would make CI'scargo publishfail with "already uploaded" and block the entire release workflow, including the GitHub Release. During the v0.8.0 release this only surfaced as a confusing mid-release stop at the missing-token error.What
release.toml: setpublish = falsewith a comment explaining that CI owns publishing.cargo release --executenow does bump → commit → tag → push only, and the tag push hands off to CI..claude/commands/release.md:cargo loginprerequisite; added brew install option for tools--no-verify(packaging/verify only ran because of local publish), so the "no hash listed" troubleshooting entry is replacedgh run watchcommand for the CI release workflowcargo release tag/cargo release pushstep subcommands, and what "already uploaded" in publish-crates meansVerification
cargo release --workspace patchdry-run now plans version bump + push only — no Packaging/Uploading steps🤖 Generated with Claude Code