File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 3030 node-version : ' lts/*'
3131 registry-url : ' https://registry.npmjs.org'
3232
33+ - name : Ensure OIDC-only npm auth (no tokens)
34+ run : |
35+ # Remove any committed or inherited npm token configuration
36+ rm -f .npmrc ~/.npmrc
37+ npm config delete //registry.npmjs.org/:_authToken || true
38+ npm config delete _authToken || true
39+ npm config delete token || true
40+
41+ # Defensive: if your repo/org still has these secrets, make sure they are not used
42+ echo "NPM_TOKEN is: ${NPM_TOKEN:+set}" || true
43+ echo "NODE_AUTH_TOKEN is: ${NODE_AUTH_TOKEN:+set}" || true
44+ env :
45+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
46+ NODE_AUTH_TOKEN : ${{ secrets.NODE_AUTH_TOKEN }}
47+
3348 - name : Install dependencies
3449 run : npm ci
3550
You can’t perform that action at this time.
0 commit comments