fix(ci): wire NPM_TOKEN into publish steps (OIDC trusted publishing never configured npm-side) - #73
Merged
Merged
Conversation
…was never configured npm-side
|
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.
Summary
Today's 0.1.2 release run failed at Publish with E404 on PUT for both packages. Diagnosis:
force-release.ymlhas 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.NPM_TOKENexists (updated 2026-05-19) but no workflow ever referenced it — the Publish steps had noNODE_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 ofrelease.ymlandforce-release.yml.actions/setup-nodewithregistry-urlalready writes an.npmrcthat readsNODE_AUTH_TOKEN; provenance still signs via the existingid-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
release.ymlruns 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.6on npm and git tags pushed (which trigger the MCP-registry publish).