Repository navigation
fix(release): publish @rustledger/mcp-server at the release-tag version - #1652
Merged
Merged
Conversation
The MCP server is a standalone npm package whose version lives only in packages/mcp-server/package.json — it is NOT derived from any Cargo.toml like @rustledger/wasm is. So `cargo set-version` during a release cut never bumps it, and release-build's validate-version only compares the *crate* version to the tag, so a stale package.json sails through. For v0.17.0 it was still 0.16.5, so publish-npm-mcp republished/skipped 0.16.5 and @rustledger/[email protected] was never published — the Release Channel Testing 'npm (@rustledger/mcp-server)' job then failed waiting for 0.17.0. - publish-npm-mcp now runs `npm version <tag> --no-git-tag-version --allow-same-version` before build/publish, so the published version always matches the release tag regardless of the committed package.json — the drift cannot recur. - Bump packages/mcp-server/package.json (and the stale package-lock.json, which was at 0.16.1) to 0.17.0 for repo consistency. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes the release workflow so @rustledger/mcp-server is always published at the release tag version (preventing tag/package.json drift from causing missing npm releases like v0.17.0).
Changes:
- Bump
@rustledger/mcp-serverversion to0.17.0inpackage.json. - Bump the lockfile’s recorded package version to
0.17.0. - Update
release-publish.ymlto runnpm version ${RELEASE_TAG#v} --no-git-tag-version --allow-same-versionbefore building/publishing the MCP server package.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/mcp-server/package.json | Updates the MCP server npm package version to 0.17.0. |
| packages/mcp-server/package-lock.json | Updates the lockfile’s recorded package version to 0.17.0. |
| .github/workflows/release-publish.yml | Ensures MCP server publish step syncs npm version to the release tag before publish. |
Files not reviewed (1)
- packages/mcp-server/package-lock.json: Generated file
Comments suppressed due to low confidence (1)
packages/mcp-server/package-lock.json:13
- package-lock.json is still inconsistent with package.json for @rustledger/wasm: the lock lists a dependency of "^0.16.1" and pins node_modules/@rustledger/wasm to 0.16.1, while package.json currently declares "@rustledger/wasm": "^0.16.5". Since this PR touches the lockfile version, it should be regenerated so the lock matches the manifest (and ideally updated to the intended release-series dependency).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Merged
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.
Fixes the
Release Channel Testing→ npm (@rustledger/mcp-server) failure for v0.17.0.Root cause
@rustledger/wasmderives its npm version from the Rust crate'sCargo.toml(whichcargo set-versionbumps during a release cut), so it published0.17.0fine. But@rustledger/mcp-serveris a standalone npm package — its version lives only inpackages/mcp-server/package.json, whichcargo set-versionnever touches, andrelease-build'svalidate-versiononly compares the crate version to the tag. Sopackage.jsonwas still0.16.5;publish-npm-mcpreads the version frompackage.jsonand thus republished/skipped0.16.5.@rustledger/[email protected]was never published, and the channel test timed out waiting for it.Fix
publish-npm-mcpnow syncs the version to the release tag (npm version <tag> --no-git-tag-version --allow-same-version) before build/publish, so the published version always matches the tag regardless of what's committed inpackage.json— this drift can't recur on future releases.packages/mcp-server/package.jsonto0.17.0(and the stalepackage-lock.json, which was at0.16.1).Follow-up to ship 0.17.0
After this merges to
main, I'll re-dispatch Release Publish (tag=v0.17.0) — its crates.io/wasm jobs are idempotent (monotonicity-guarded, skip already-published versions) andpublish-npm-mcpwill now publish@rustledger/[email protected]— then re-run Channel Testing to confirm green.🤖 Generated with Claude Code