File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments