Skip to content

Commit 65dce71

Browse files
jbrejnerclaude
andcommitted
fix: wire up Node 24 + setup-node for npm trusted publishing
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>
1 parent 804ba44 commit 65dce71

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ jobs:
144144
go-version-file: '.go-version'
145145
check-latest: true
146146

147+
- name: Set up Node.js
148+
uses: actions/setup-node@v4
149+
with:
150+
node-version: '24'
151+
registry-url: 'https://registry.npmjs.org'
152+
147153
# Use release notes from the tag body when present (set by interactive `make release` or `make release tag=vX.Y.Z` with dist/release_notes.md). Otherwise GoReleaser uses its default changelog.
148154
# Write to repo root so GoReleaser's --clean (which removes dist/) does not delete the file before it is read.
149155
- name: Get release notes from tag

0 commit comments

Comments
 (0)