Skip to content

Make npm trusted-publishing failures diagnosable - #4

Merged
rvegajr merged 1 commit into
mainfrom
ci/npm-oidc-diagnostics
Sep 30, 2026
Merged

rvegajr merged 1 commit into
mainfrom
ci/npm-oidc-diagnostics

Conversation

@rvegajr

@rvegajr rvegajr commented Sep 30, 2026

Copy link
Copy Markdown
Member

The npm trusted publish for js-v1.0.5 fails with E404, and there's no provenance notice, so the OIDC exchange isn't completing. The logs don't say why.

This change:

  • prints the node and npm versions
  • publishes with --loglevel verbose, which logs the OIDC exchange
  • clears setup-node's placeholder NODE_AUTH_TOKEN (XXXXX-…), so a failed exchange doesn't fall back to a bogus token

After merging, js-v1.0.5 is re-pointed to the merge commit. It never produced a release.

Log npm/node versions and publish with --loglevel verbose so the OIDC token
exchange is visible, and clear setup-node's placeholder NODE_AUTH_TOKEN so a
failed exchange is reported as an auth error rather than a misleading E404.
@rvegajr
rvegajr merged commit 236f6ad into main Sep 30, 2026
4 checks passed
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