Skip to content

chore(release): dump npm debug log on publish failure#239

Closed
cipolleschi wants to merge 1 commit into
0.87-stablefrom
diag/release-npm-debuglog
Closed

chore(release): dump npm debug log on publish failure#239
cipolleschi wants to merge 1 commit into
0.87-stablefrom
diag/release-npm-debuglog

Conversation

@cipolleschi

Copy link
Copy Markdown
Contributor

Second diagnostic. The OIDC id-token IS available (previous diagnostic confirmed), npm is 11.16.0, and no token is configured — yet npm publish returns ENEEDAUTH with no OIDC-related output on the console.

npm always writes a full-detail debug log to ~/.npm/_logs/*-debug-0.log regardless of console loglevel. This adds an if: failure() step that prints it, so we can see whether npm attempted the OIDC token exchange and what the registry replied (e.g. no trusted publisher configured / claim mismatch).

Revert once the release is green.

Surfaces npm's full-detail debug log (including the OIDC trusted-publishing decision) so we can see why npm falls back to ENEEDAUTH instead of using OIDC.
@cipolleschi

Copy link
Copy Markdown
Contributor Author

Superseded by #240 — the debug log isn't needed; root cause identified as setup-node@v4 predating OIDC support.

@cipolleschi cipolleschi closed this Jul 8, 2026
@cipolleschi cipolleschi deleted the diag/release-npm-debuglog branch July 8, 2026 13:11
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