From daa2b2a6ac9ed56e40d575869f07d49842b269da Mon Sep 17 00:00:00 2001 From: Rhuan Barreto Date: Sat, 6 Sep 2025 14:06:22 +0200 Subject: [PATCH] ci: add setup-node for npm OIDC trusted publishing actions/setup-node with registry-url is required to configure .npmrc so that npm CLI can exchange the GitHub OIDC token for a publish token. Without it, npm has no auth config and fails with ENEEDAUTH. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ddb3e3..5b78308 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -124,6 +124,10 @@ jobs: - name: Validate id: validate run: bun run validate + - name: Setup Node.js for npm publish + uses: actions/setup-node@v4 + with: + registry-url: 'https://registry.npmjs.org' - name: Release uses: TrigenSoftware/simple-release-action@v1 with: