fix: wire up Node 24 + setup-node for npm trusted publishing#845
Conversation
The previous commit removed .npmrc files and NPM_TOKEN expecting OIDC-based passwordless auth, but npm trusted publishing requires Node >=22.14.0, npm >=11.5.1, and actions/setup-node to configure the registry. Without setup-node the runner had no registry config at all, causing ENEEDAUTH on every npm publish attempt. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Claude finished @jbrejner's task in 2m 33s —— View job PR Review: Wire up Node 24 + setup-node for npm trusted publishing
Static AnalysisAll Go checks pass — Code ReviewThe change is correct and well-scoped. It adds the missing What works well:
One suggestion to consider: Node 24 is current but not LTS — it was released April 2025 and won't reach LTS until October 2025. The npm trusted publishing requirement is Node ≥ 22.14.0 + npm ≥ 11.5.1, which Node 22 LTS satisfies. Using No issues found with:
Verdict: Looks good to merge. The Node 22 vs 24 choice is the only point worth a brief discussion — the rest is clean. |
…#845) The previous commit removed .npmrc files and NPM_TOKEN expecting OIDC-based passwordless auth, but npm trusted publishing requires Node >=22.14.0, npm >=11.5.1, and actions/setup-node to configure the registry. Without setup-node the runner had no registry config at all, causing ENEEDAUTH on every npm publish attempt. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
actions/setup-node@v4(Node 24) withregistry-url: https://registry.npmjs.orgto thegoreleaserjobNPM_TOKENor per-package.npmrcfilesid-token: writepermission was already present on the job; the missing piece wassetup-nodeto configure the registry endpointRoot cause
The previous commit (#843) correctly removed the
.npmrcfiles andNPM_TOKEN, but npm trusted publishing requires Node ≥ 22.14.0, npm ≥ 11.5.1, andactions/setup-nodewith aregistry-urlto configure OIDC auth. Withoutsetup-node, the runner had no registry config at all →ENEEDAUTHon everynpm publishattempt.Test plan
NPM_TOKEN--provenanceattestations are generated for each package🤖 Generated with Claude Code