Skip to content

fix(ci): wire NPM_TOKEN into publish steps (OIDC trusted publishing never configured npm-side) - #73

Merged
johnxie merged 1 commit into
mainfrom
fix/ci-npm-token-fallback
Jul 28, 2026
Merged

fix(ci): wire NPM_TOKEN into publish steps (OIDC trusted publishing never configured npm-side)#73
johnxie merged 1 commit into
mainfrom
fix/ci-npm-token-fallback

Conversation

@johnxie

@johnxie johnxie commented Jul 28, 2026

Copy link
Copy Markdown
Member

Summary

Today's 0.1.2 release run failed at Publish with E404 on PUT for both packages. Diagnosis:

  • npm OIDC trusted publishing was never configured on npmjs.comforce-release.yml has failed on every dispatch since Feb 2026 (runs 22002394603, 22002491927, 26078540906, 27230718079), and the June 0.1.0/0.1.1 publishes were manual token publishes from a maintainer machine, which masked this.
  • A repo secret NPM_TOKEN exists (updated 2026-05-19) but no workflow ever referenced it — the Publish steps had no NODE_AUTH_TOKEN, so npm had no credentials and the registry returned its unauthorized-as-404.

Fix

Add NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} to the Publish steps of release.yml and force-release.yml. actions/setup-node with registry-url already writes an .npmrc that reads NODE_AUTH_TOKEN; provenance still signs via the existing id-token: write + NPM_CONFIG_PROVENANCE.

If/when trusted publishing is configured on npmjs.com for both packages, the token fallback can be removed.

Test plan

  • Merge → release.yml runs on the push; with no pending changesets it goes straight to Publish → expect @taskade/mcp-server@0.1.2 + @taskade/mcp-openapi-codegen@0.0.6 on npm and git tags pushed (which trigger the MCP-registry publish).
  • If the stored token itself is invalid, the run fails the same way and the remaining fix is npm-side (add trusted publisher or mint a fresh automation token) — documented in the run comment.

@changeset-bot

changeset-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 45caf5c

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

@johnxie
johnxie merged commit 786f426 into main Jul 28, 2026
1 check passed
@johnxie
johnxie deleted the fix/ci-npm-token-fallback branch July 28, 2026 11:07
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.

1 participant