Skip to content

Commit e7ae478

Browse files
committed
fix(ci): clear NODE_AUTH_TOKEN to allow npm OIDC trusted publishing
1 parent 14c2ec7 commit e7ae478

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ jobs:
142142
uses: actions/setup-node@v4
143143
with:
144144
node-version: 22
145-
registry-url: https://registry.npmjs.org
146145

147146
- name: Install dependencies
148147
run: bun install
@@ -169,12 +168,8 @@ jobs:
169168
exit 1
170169
fi
171170
172-
- name: Debug publish environment
173-
run: |
174-
npm --version
175-
node --version
176-
cat "$NPM_CONFIG_USERCONFIG" 2>/dev/null || echo "no npmrc"
177-
echo "ACTIONS_ID_TOKEN_REQUEST_URL is set: ${{ env.ACTIONS_ID_TOKEN_REQUEST_URL != '' }}"
178-
179171
- name: Publish to npm
180-
run: npm publish --provenance --access public
172+
run: |
173+
npm config set registry https://registry.npmjs.org/
174+
unset NODE_AUTH_TOKEN
175+
npm publish --provenance --access public

0 commit comments

Comments
 (0)