Skip to content

ci: use setup-node v6 so npm OIDC trusted publishing works - #37

Merged
simonepri merged 1 commit into
mainfrom
fix/oidc-setup-node-v6
Jun 8, 2026
Merged

ci: use setup-node v6 so npm OIDC trusted publishing works#37
simonepri merged 1 commit into
mainfrom
fix/oidc-setup-node-v6

Conversation

@simonepri

Copy link
Copy Markdown
Owner

Second fix for the 0.6.1 publish. The previous attempt got past ENEEDAUTH (npm 11.16, registry-url set) but hit E404actions/setup-node@v4 writes a placeholder _authToken to .npmrc (visible as the always-auth warning + NODE_AUTH_TOKEN: XXXXX-...), so npm used that bogus token instead of OIDC and the registry rejected it.

setup-node@v6 is OIDC-aware and matches npm's documented recipe (node 24, registry-url, no token). After merge I'll dispatch the workflow again to publish 0.6.1.

setup-node v4 writes a placeholder auth token to .npmrc, which npm uses
instead of OIDC and the registry rejects (masked 404). v6 is OIDC-aware;
matches npm's documented trusted-publishing setup (node 24, no token).
@simonepri
simonepri merged commit 641a815 into main Jun 8, 2026
14 checks passed
@simonepri
simonepri deleted the fix/oidc-setup-node-v6 branch June 8, 2026 10:44
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