File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 node-version : ' 18'
4343 cache : ' npm'
4444 registry-url : ' https://registry.npmjs.org'
45- # Use trusted publishing (OIDC) - no token needed!
45+ # For OIDC trusted publishing, no NODE_AUTH_TOKEN is needed
46+ # npm will automatically use the OIDC token from GitHub Actions
4647
4748 - run : npm ci
4849 - run : npm run build
6869 fi
6970 echo "Version verification passed"
7071
72+ # Verify OIDC token is available (for debugging)
73+ - name : Verify OIDC setup
74+ run : |
75+ echo "Repository: ${{ github.repository }}"
76+ echo "Ref: ${{ github.ref }}"
77+ echo "OIDC token available: $([ -n "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" ] && echo "yes" || echo "no")"
78+ # Check if npm can authenticate
79+ npm whoami 2>&1 || echo "Note: npm whoami may fail before publish, this is normal for OIDC"
80+
7181 # Publish to npm using trusted publishing (OIDC)
7282 - name : Publish to npm
7383 run : npm publish --provenance --access public
You can’t perform that action at this time.
0 commit comments