Github release best practices

From d-o-hub/rust-self-learning-memory · View interactive version

Github release best practices is an AI agent skill from the GitHub repository d-o-hub/rust-self-learning-memory. Background reference for release prep (SemVer, changelog categories). For actual releases, ALWAYS use the release-guard skill and release-manager.sh ship — never manual gh release create.

How to use this skill

Skill file

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)

  1. Bump workspace version in root Cargo.toml (all members follow workspace).
  2. Update CHANGELOG.md with exactly one ## [X.Y.Z] - YYYY-MM-DD (unique version headers — cargo-dist/parse-changelog fails silently on duplicates → empty GitHub Release body).
  3. Set Released Version in plans/ROADMAPS/ROADMAP_ACTIVE.md and plans/STATUS/CURRENT.md to vX.Y.Z.
  4. Preflight the ship state: ./scripts/verify-release-state.sh --check-unreleased (validates items 1–3 against workspace_version and prints per-file mismatches).
  5. Merge PR (version + changelog + version docs land as one release-prep PR); wait for main CI green.
  6. Run: ./scripts/release-manager.sh ship --execute
  7. Confirm notes: gh release view vX.Y.Z shows ## Release Notes content (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.

nothing — check step conclusions, not just the workflow conclusion, before calling a version released.

do-memory-test-utils is publish = false — neither is a publish failure.

Forbidden

# DO NOT — bypasses cargo-dist and release.yml preflight
gh release create vX.Y.Z ...

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.