Skip to content

fix(release): publish @rustledger/mcp-server at the release-tag version - #1652

Merged
robcohen merged 1 commit into
mainfrom
fix/mcp-npm-version
Jun 30, 2026
Merged

robcohen merged 1 commit into
mainfrom
fix/mcp-npm-version

Conversation

@robcohen

Copy link
Copy Markdown
Member

Fixes the Release Channel Testing → npm (@rustledger/mcp-server) failure for v0.17.0.

Root cause

@rustledger/wasm derives its npm version from the Rust crate's Cargo.toml (which cargo set-version bumps during a release cut), so it published 0.17.0 fine. But @rustledger/mcp-server is a standalone npm package — its version lives only in packages/mcp-server/package.json, which cargo set-version never touches, and release-build's validate-version only compares the crate version to the tag. So package.json was still 0.16.5; publish-npm-mcp reads the version from package.json and thus republished/skipped 0.16.5. @rustledger/[email protected] was never published, and the channel test timed out waiting for it.

Fix

  • publish-npm-mcp now 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 in package.json — this drift can't recur on future releases.
  • Bumped packages/mcp-server/package.json to 0.17.0 (and the stale package-lock.json, which was at 0.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) and publish-npm-mcp will now publish @rustledger/[email protected] — then re-run Channel Testing to confirm green.

🤖 Generated with Claude Code

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]>
@robcohen
robcohen requested a review from a team as a code owner June 30, 2026 17:45
Copilot AI review requested due to automatic review settings June 30, 2026 17:45
@robcohen
robcohen merged commit 73545aa into main Jun 30, 2026
35 checks passed
@robcohen
robcohen deleted the fix/mcp-npm-version branch June 30, 2026 17:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-server version to 0.17.0 in package.json.
  • Bump the lockfile’s recorded package version to 0.17.0.
  • Update release-publish.yml to run npm version ${RELEASE_TAG#v} --no-git-tag-version --allow-same-version before 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.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Compatibility Test Results

Metric Result
Check Compatibility 100%
BQL Compatibility 100%
Full AST Match 100%
Total Files 792
What's tested
  • Check: Exit codes and error counts match bean-check
  • BQL: Query results match bean-query
  • Files: ~800 test files downloaded from 10+ beancount repositories

Full results available in workflow artifacts

@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@robcohen robcohen mentioned this pull request Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants