Repository navigation
ci(release): refuse a tag that does not match the committed version - #33
Merged
Merged
Conversation
build-binaries compiles from the committed Cargo.toml version, and the publish job only rewrites package.json files from the tag. Tagging v0.4.0 on a tree still at 0.3.3 would therefore publish npm 0.4.0 packages whose binaries report 0.3.3 (daemon /api version, runs.version, MCP serverInfo, user agent, banners). v0.3.0-v0.3.3 avoided this with a manual bump commit, but nothing enforced it. - quality: fail first unless the tag equals both Cargo.toml's workspace version and npm/tailflow/package.json's version. - Build, clippy and test with --locked, as ci.yml already does. - Attach SHA256SUMS covering every tarball and .exe on the GitHub Release. Checked locally: the guard passes for v0.3.3 and fails for v0.4.0 and an empty tag on the current tree; actionlint is clean.
This was referenced Nov 27, 2026
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.
Found in the v0.4.0 release-gate review. Workflow-only change; no product code.
Problem
build-binariescompiles from the committedCargo.tomlversion, andpublish-npmonly rewritespackage.jsonfiles from the tag (bump-version.jsruns after the binaries are built). Taggingv0.4.0on the current tree, which is still 0.3.3, would publish npm 0.4.0 packages whose binaries report 0.3.3: daemon/apiversion,runs.version, MCPserverInfo, user agent and banners. Tags v0.3.0–v0.3.3 avoided this with a manual bump commit, but nothing enforced it.Change
qualityfails first unless the tag equals both theCargo.tomlworkspace version andnpm/tailflow/package.json's version.--lockedon release clippy, test and both build paths, asci.ymlalready does.SHA256SUMSfile covering every tarball and.exeis attached to the GitHub Release. The.exefiles are now uploaded fromdist/; the asset names are unchanged.Checked
v0.3.3passes;v0.4.0and an empty tag fail.actionlintis clean.sha256sum -- … > SHA256SUMS/-cwas round-tripped locally.Not changed (left for owner decision): pinning actions to SHAs,
npm@latestin the publish job,crossfrom git HEAD, and rc tags publishing to npmlatest.