Skip to content

release: v2.3.2 (fix Trusted Publishing OIDC) - #12

Merged
mangelsnc merged 1 commit into
mainfrom
release/2.3.2
Jun 16, 2026
Merged

mangelsnc merged 1 commit into
mainfrom
release/2.3.2

Conversation

@mangelsnc

Copy link
Copy Markdown
Owner

v2.3.1 also failed to publish — the misleading 404 'not in this registry' had a second cause. With registry-url: https://registry.npmjs.org/ passed to actions/setup-node, setup-node writes an .npmrc with _authToken=${NODE_AUTH_TOKEN} and exposes a placeholder env var NODE_AUTH_TOKEN: XXXXX-XXXXX-XXXXX-XXXXX to every step. npm publish then prefers that placeholder token over the OIDC handshake, npm rejects, and we get the 404.

The fix is to drop registry-url from setup-node. npm 10 with id-token: write performs the OIDC handshake against the default registry on its own.

What was cleaned up

  • Tag 2.3.1 and the GitHub Release 2.3.1 have been deleted (no npm package existed for it, so nothing to break for users).
  • The [2.3.1] CHANGELOG entry has been folded into a new [2.3.2] entry with the additional fix described above.

Release procedure once this lands

git checkout main
git pull
git tag 2.3.2
git push origin 2.3.2

Test plan

  • CI on this PR passes.
  • After merge, pushing tag 2.3.2 runs the workflow end to end.
  • npm view undisclosed@2.3.2 version returns 2.3.2.
  • npm view undisclosed dist-tags.latest returns 2.3.2.
  • Provenance attestation is visible on the npm package page.

Drop registry-url from actions/setup-node in the release job. With
registry-url, setup-node writes an .npmrc with a placeholder
NODE_AUTH_TOKEN that npm publish prefers over the OIDC token,
producing a misleading 404 'not in this registry' error even though
the provenance signs successfully.

No code changes vs v2.3.0/v2.3.1; this is purely a release-plumbing
fix so that Trusted Publishing actually authenticates.
@mangelsnc mangelsnc self-assigned this Jun 16, 2026
@mangelsnc
mangelsnc merged commit 526b0b2 into main Jun 16, 2026
1 check passed
@mangelsnc
mangelsnc deleted the release/2.3.2 branch June 16, 2026 07:49
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