Repository navigation
ci: block releases on tag/manifest mismatch - #183
Merged
Merged
Conversation
Adds guardrail preventing the release workflow from building when the pushed tag's version doesn't match the manifest versions. Also adds scripts/check-release-readiness.sh — local pre-flight check that validates manifests agree (and optionally match an expected tag, tree clean, on main). What it catches: - Manifests disagree (package.json ≠ Cargo.toml ≠ tauri.conf.json) - Tag pushed without bumping manifests first - Manifests bumped but tag never created Background: v0.3.4 tag was created on main while manifests still said 0.3.3. Fixed in #182 by bumping manifests. This guardrail makes that class of bug impossible going forward — release.yml's new `validate` job fails the build before any artifact is produced. Workflow change: - New `validate` job runs first - Reads tag from GITHUB_REF_NAME - Compares against all 3 manifests - Fails if any mismatch, with actionable error messages - `build` job now `needs: validate` Local script (scripts/check-release-readiness.sh): - Default: verifies manifests agree - --strict: also requires clean tree + on main - With version arg: also checks manifests match that version
- Refactor validate job to invoke scripts/check-release-readiness.sh (kills inline bash dup, removes Node dependency from CI) - Pin actions/checkout to SHA matching build job (supply-chain consistency) - Add permissions: contents: read to validate job (least-privilege) - Improve manifest-disagreement error message (make bump increments, doesn't reconcile drift — direct user to manual alignment) - Add trailing newline to scripts/check-release-readiness.sh
EVWorth
force-pushed
the
ci/release-tag-check
branch
from
July 19, 2026 01:43
165477a to
bb9e733
Compare
This was referenced Jul 19, 2026
EVWorth
added a commit
that referenced
this pull request
Jul 19, 2026
Closes the loop from #183 (release guardrail): - AGENTS.md Release Flow section now references scripts/check-release-readiness.sh at step 0 (pre-flight) and step 3 (post-bump, pre-tag). Documents the CI validate job as second line of defense. - release-cutter.md pre-conditions delegate to the script instead of re-implementing the checks. Single source of truth for release-readiness logic. Both changes are documentation-only. No code paths changed. Refs: #183
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.
Summary
Adds a CI guardrail preventing the release workflow from building when the pushed tag's version doesn't match the manifest versions.
Why
v0.3.4tag was created onmainwhile the manifests still said0.3.3. Fixed in #182 by bumping manifests. This PR makes that class of bug impossible going forward.Changes
.github/workflows/release.ymlvalidatejob runs first on anyv*tag pushGITHUB_REF_NAME, compares againstpackage.json,Cargo.toml,tauri.conf.jsonmake bumpbuildjob nowneeds: validate(won't run if validate fails)scripts/check-release-readiness.sh(new)Local pre-flight check, runnable manually before tagging:
What it catches
package.json≠Cargo.toml≠tauri.conf.jsonTest plan
After merge:
v0.3.4tag) → CI should fail with clear errorscripts/check-release-readiness.sh 0.3.5locally with manifests at 0.3.4 → script failsscripts/check-release-readiness.sh --stricton dirty tree → script failsRelated
.opencode/agent/release-cutter.md— should be updated to recommend this script (can do as follow-up).opencode/AGENTS.md— release flow section can reference this (follow-up)