fix(release): sync Cargo crate version with npm/GitHub release version - #63
Merged
Conversation
Binary --version reported 0.1.0 while npm and GitHub releases were at 0.1.7. release-version.ts only bumped package.json, never Cargo.toml, so every publish built a binary stamped with the stale workspace version. - Bump Cargo.toml and crates/comment-checker/Cargo.toml to 0.1.7 - Make release-version.ts bump all crates/*/Cargo.toml alongside npm - Add check-versions.ts gate and wire into tools.yml to fail PRs on Cargo-vs-npm divergence Co-authored-by: internal-model
systemfsoftware-maker
force-pushed
the
fix/version-sync-cargo-npm
branch
from
August 25, 2026 14:14
ac91da5 to
14a0409
Compare
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.
Problem
comment-checker --versionreports0.1.0while npm and GitHub releases are at0.1.7.Cargo.toml[workspace.package] versionandcrates/comment-checker/Cargo.tomlhave never been bumped —release-version.tsonly bumpednpm/packages/comment-checker/package.json, so everycargo buildinplatform.ymlembeds the stale0.1.0andtag-released-packages.tstags it asv0.1.7.Fix
Cargo.tomlandcrates/comment-checker/Cargo.tomlto0.1.7(drift repair)release-version.tsbump allcrates/*/Cargo.tomlalongside npm so future releases stay locked —comment-checker --versionwill match the GitHub tagscripts/tools/check-versions.tsand wire intotools.ymlto fail PRs on Cargo-vs-npm divergenceVerification
cargo run -- --version→0.1.7(was0.1.0)./scripts/tools/check-versions.ts→ok npm=0.1.7 workspace=0.1.70.1.8→check-versionsexits 1 withCargo.toml workspace 0.1.8 != npm 0.1.7release-version.tsprobe: fake.changeset/probe.md(patch) → Cargo + npm both0.1.8cargo fmt --check && cargo clippy --all-targets -- -D warnings && cargo test --all-targetsgreenPlan:
docs/plans/2026-08-25-002-fix-version-sync-cargo-npm.mdFixes: self-reported version mismatch with GitHub release.