Skip to content

Commit 254dd13

Browse files
committed
fix: npm publish job
1 parent 625a88e commit 254dd13

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ jobs:
1919
- uses: actions/setup-node@v6
2020
with:
2121
node-version: '24'
22-
registry-url: 'https://registry.npmjs.org' # Specifies the npm registry
22+
# registry-url: 'https://registry.npmjs.org' # Specifies the npm registry
2323
- run: npm ci
2424
- run: npm run build --if-present
2525
- run: npm test
26-
- run: unset NODE_AUTH_TOKEN; unset NPM_TOKEN # Unset the default token set by "actions/setup-node" to get OIDC publishing working
27-
- run: npm publish # The npm CLI automatically uses the OIDC token
26+
- run: |
27+
rm -f .npmrc ~/.npmrc # Ensure no existing npm tokens interfere
28+
unset NODE_AUTH_TOKEN; unset NPM_TOKEN; # Unset the default token set by "actions/setup-node" to get OIDC publishing working
29+
npm publish # The npm CLI automatically uses the OIDC token
2830
2931
- name: Create GitHub Release
3032
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)