GitHub Release Best Practices (reference only)
Canonical procedure: release-guard
Canonical CLI:
./scripts/release-manager.sh ship --execute
GitHub Release creator:
.github/workflows/release.yml(tag push only)
Do not invent a second release path. This file is supporting context only.
Prep before ship (via PR to main)
- Bump workspace
versionin rootCargo.toml(all members follow workspace). - Update
CHANGELOG.mdwith exactly one## [X.Y.Z] - YYYY-MM-DD(unique version headers — cargo-dist/parse-changelog fails silently on duplicates → empty GitHub Release body). - Set Released Version in
plans/ROADMAPS/ROADMAP_ACTIVE.mdandplans/STATUS/CURRENT.mdtovX.Y.Z. - Preflight the ship state:
./scripts/verify-release-state.sh --check-unreleased(validates items 1–3 againstworkspace_versionand prints per-file mismatches). - Merge PR (version + changelog + version docs land as one release-prep PR); wait for main CI green.
- Run:
./scripts/release-manager.sh ship --execute - Confirm notes:
gh release view vX.Y.Zshows## Release Notescontent (v0.1.34/v0.1.35 format).
A bumped version is not a shippable repo
Tagging requires 1 + 2 + 3 above on main. ⚠️ parse-changelog not installed in the preflight output is also a
blocker — install it (cargo install --locked parse-changelog; the crate is parse-changelog, not
parse-changelog-cli, which does not exist) or release notes silently fall back to an empty body.
Mismatch output looks like this:
$ ./scripts/verify-release-state.sh --check-unreleased
❌ ROADMAP_ACTIVE.md says v0.1.45 (expected v0.1.46)
❌ STATUS/CURRENT.md references v0.1.45
❌ CHANGELOG.md missing entry for v0.1.46
⚠️ parse-changelog not installed (release notes will fall back)
Semver (0.x)
| Change | Bump |
|--------|------|
| Breaking | minor or major (team call) |
| Feature | minor preferred |
| Fix | patch |
Changelog categories
Added · Changed · Deprecated · Removed · Fixed · Security
crates.io reality check
The publish chain (.github/workflows/publish-crates.yml, environment: crates.io, OIDC Trusted Publishing) owns
exactly four crates: core → redb → turso → mcp.
- Publish acceptance =
index("X.Y.Z") != nullfor those four plus a greenVerify publish landedstep. - A green workflow whose publish step conclusion was
skipped(conclusion=skipped;duration_ms=0) published
nothing — check step conclusions, not just the workflow conclusion, before calling a version released.
do-memory-clireturning HTTP 404 on crates.io is correct (it ships as a GitHub Release asset), and
do-memory-test-utils is publish = false — neither is a publish failure.
- Query crates.io with a custom UA (
curl -A <UA>); the default curl UA is rejected withFETCH_FAILED-shaped noise.
Forbidden
# DO NOT — bypasses cargo-dist and release.yml preflight
gh release create vX.Y.Z ...
References
- ADR-034 Release Engineering
.agents/skills/release-guard/SKILL.md./scripts/release-manager.sh./scripts/verify-release-state.sh(ship preflight).github/workflows/publish-crates.yml(crates.io chain)