Skip to content

chore(ci): remove dead publish job from main.yml#1829

Merged
felixweinberger merged 3 commits intomainfrom
fweinberger/rm-dead-publish-job
Mar 31, 2026
Merged

chore(ci): remove dead publish job from main.yml#1829
felixweinberger merged 3 commits intomainfrom
fweinberger/rm-dead-publish-job

Conversation

@felixweinberger
Copy link
Copy Markdown
Contributor

Deletes the on: release trigger and the entire publish job from main.yml. 52 lines removed.

Motivation and Context

The publish job runs pnpm publish from the workspace root, which has "private": true — it has structurally never succeeded since the monorepo conversion and never will.

It triggers on on: release: types: [published]. When the Version Packages PR merges and changeset publish creates 5 GitHub Releases (one per package), this fires 5 times: 5 environment: release approval prompts (if configured), ~30 redundant build/test jobs (needs: [build, test, test-runtimes] re-runs CI that already passed on the push), then 5 red X on pnpm publish hitting private: true.

The packages are already published by release.yml via changesets/action by this point. This is v1-era single-package machinery that never got removed.

Also takes out the latent -beta-not--alpha bug in the npm-tag step (reads root package.json which changesets doesn't bump, checks -beta but not -alpha) — currently masked by the enclosing failure but dangerous if anyone copies it.

v1.x is unaffected. on: release loads workflow YAML from the tagged commit's tree, not the default branch. v1.x tags point at v1.x commits which have their own main.yml with the publish job intact (where it works — v1.x root is @modelcontextprotocol/sdk, not private).

How Has This Been Tested?

Workflow YAML only — CI validates syntax. Verified no release: or publish: strings remain in the file.

Breaking Changes

None.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Follow-ups (not in this PR, tracked in the audit doc at ~/src/mcp/docs/2026-03-31-release-workflow-audit.md):

  • Move environment: release gate to release.yml — currently protects nothing, real publish is ungated
  • Add provenance to release.yml (id-token: write + NPM_CONFIG_PROVENANCE: "true")
  • v1.x side: CONTRIBUTING.md is wrong about the release process (tag push doesn't publish, needs gh release create)

The publish job runs `pnpm publish` from the workspace root, which has
`private: true` — structurally can't succeed since the monorepo
conversion. It triggers on `on: release` which fires 5× when changesets
creates one GitHub Release per package, producing 5 red X per release.
release.yml is the real publish path.

v1.x is unaffected: it has its own main.yml in its own tree, and on:release
loads workflow YAML from the tagged commit, not the default branch.
@felixweinberger felixweinberger requested a review from a team as a code owner March 31, 2026 14:53
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 31, 2026

⚠️ No Changeset found

Latest commit: 34f2fad

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 31, 2026

Open in StackBlitz

@modelcontextprotocol/client

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/client@1829

@modelcontextprotocol/server

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/server@1829

@modelcontextprotocol/express

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/express@1829

@modelcontextprotocol/fastify

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/fastify@1829

@modelcontextprotocol/hono

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/hono@1829

@modelcontextprotocol/node

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/node@1829

commit: 34f2fad

@felixweinberger felixweinberger enabled auto-merge (squash) March 31, 2026 16:27
@felixweinberger felixweinberger merged commit babaa50 into main Mar 31, 2026
14 checks passed
@felixweinberger felixweinberger deleted the fweinberger/rm-dead-publish-job branch March 31, 2026 16:45
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