Release hyalo
Cuts a release vX.Y.Z from main. The GitHub Release publish event is
what triggers the build/package pipeline (.github/workflows/release.yml,
shared via ractive/release-workflows) — so the release is created last,
after everything on main is final.
Hard rules
- NEVER create git tags manually.
gh release createmakes the tag. - CI enforces tag == workspace
Cargo.tomlversion; mismatch fails the pipeline after the tag exists — check the version BEFORE releasing. - Everything lands on
mainbefore the release is created. The mechanical release commits (version bump, changelog rotation) go directly on main — a release is a synchronous maintainer act; don't spin up a PR for them. - Every
hyaloinvocation below meanstarget/release/hyalo(build it first if stale). The barehyaloon PATH is the previously installed release — it predates the version being cut and will reject new config keys/flags (v0.18.0 example: it choked on[changelog]in.hyalo.tomland didn't knowlint --profile).
1. Preconditions
Decide the version from the [Unreleased] contents (pre-1.0 convention
here: minor bump for features/breaking, patch for fix-only). Check published
versions across channels before choosing it: gh release list --limit 5 and
npm view @ractive-ch/hyalo versions --json, plus the target versions of the
npm platform packages and crates when publishing those. A missing GitHub tag
does not mean the version is unused. If a channel already published that
version from older source, choose a fresh version for the new changes across
channels; immutable package versions cannot be replaced. Completing a partial
release at an existing version is only appropriate for the same source and
artifacts, using the publication workflow's existing-version checks.
The 2026-09-13 dogfood found exactly this split: GitHub's latest was 0.21.0,
npm already shipped 0.23.0, and CHANGELOG.md had both a dated [0.23.0]
section and substantial [Unreleased] content. Releasing the new work therefore
needs a new version (0.24.0 for the current feature-bearing changes), preserving
the existing 0.23.0 history. Recheck registry state when actually releasing.
Then run the read-only preflight — it checks branch/clean/sync, the 3-spot version match, that the tag doesn't exist, the changelog state (pre- vs post-rotation), changelog-profile lint, and gh auth:
.claude/skills/release/scripts/release-preflight.sh check X.Y.Z
Fix every FAIL before proceeding. Additionally verify the latest merges are
green (gh run list --branch main --limit 5 / gh pr checks <last-PR>) —
the script cannot judge CI health. It also does not check registry versions,
and accepts an existing changelog section even when [Unreleased] is non-empty.
A passing preflight therefore does not establish that the version is available
or the changelog is fully rotated. Preview hyalo changelog release X.Y.Z --dry-run when rotation is still needed; an existing version section is a
reason to reconcile the version/history, not delete published history to make
the command pass.
2. Verify or bump the workspace version
Check the root Cargo.toml. The version appears in three places that
must all match the target:
[workspace.package] version = "X.Y.Z"hyalo-core = { path = ..., version = "X.Y.Z" }hyalo-mdlint = { path = ..., version = "X.Y.Z" }
Often the bump already happened during the dev cycle (e.g. 0.18.0 was bumped
in the changelog-conversion PR long before release day) — then just verify.
If a bump is needed: edit the three fields, run cargo build --release
(refreshes Cargo.lock — commit it too), run the full gates
(cargo fmt → cargo clippy --workspace --all-targets -- -D warnings →
cargo test --workspace -q), commit on main:
chore(release): bump version to X.Y.Z.
3. Rotate the changelog (dogfood it)
target/release/hyalo changelog release X.Y.Z --apply
target/release/hyalo lint --dir . CHANGELOG.md --profile changelog # root file is outside the vault → needs --dir .
This moves [Unreleased] into a dated ## [X.Y.Z] section and rewrites the
footer compare-links. Lint must report 0 errors. Commit + push on main:
docs(changelog): release X.Y.Z.
4. Sync the winget fork
gh repo sync ractive/winget-pkgs
A stale fork makes the pipeline's winget submission fail with a misleading
CreateRef error — sync every time, before the release exists.
5. Create the release (curated notes + auto-notes)
Extract the freshly rotated section as the human-curated top of the release
notes, then create the release. GitHub prepends --notes-file to the
--generate-notes PR list (grouping per .github/release.yml labels;
unlabeled PRs land under "Other Changes").
.claude/skills/release/scripts/release-preflight.sh notes X.Y.Z > /tmp/relnotes.md
gh release create vX.Y.Z --notes-file /tmp/relnotes.md --generate-notes
The notes mode fails loudly (exit 1) if the [X.Y.Z] section is missing
or empty — never publish with an empty notes file. (If hyalo changelog show <version> exists by now, prefer it.)
6. Watch the pipeline and verify
gh run list --workflow release.yml --limit 1thengh run watch <id>— all jobs green (multi-OS builds, musl statics, deb/rpm → Cloudsmith, Homebrew, winget, SBOMs, provenance, SHA256SUMS).gh release view vX.Y.Z— assets present, notes render with the curated section on top.- Verify crates publication. The shared release workflow at
v0.2.0publishes the configured crates automatically through itscrates-iojob. Confirm that job passes and all three target versions exist on crates.io.publish-crates.ymlis the manual recovery path, not an additional mandatory publication: if recovery is needed, dispatchgh workflow run publish-crates.yml -f ref=vX.Y.Z, find its run withgh run list --workflow publish-crates.yml --limit 1, and watch it to success. Inspect that workflow before recovering a partially published release. - Verify all eight npm packages reached the target version, then dispatch
gh workflow run npm-registry.yml -f version=X.Y.Zto test installation from the registry on macOS, Linux, Windows and Alpine/musl. - Pipeline internals live in
ractive/release-workflows; failures inside reusable jobs are usually fixed there, not here.
7. Post-release follow-ups
- Downstream consumers pinned to "next release" features (e.g. the
ractive/setup-hyaloaction's smoke fixtures) can now be unblocked — check for release-blocked TODOs before closing out. - Do NOT bump the workspace version for the next cycle automatically; that happens when the next cycle actually starts.