File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,6 +139,16 @@ jobs:
139139 if [ "$CURRENT" != "${{ needs.context.outputs.version }}" ]; then
140140 npm version "${{ needs.context.outputs.version }}" --no-git-tag-version
141141 fi
142+ - name : OIDC preflight diagnostics
143+ run : |
144+ echo "node: $(node --version)"
145+ echo "npm : $(npm --version) (need >= 11.5.1 for trusted publishing)"
146+ echo "which npm: $(which npm)"
147+ echo "registry: $(npm config get registry)"
148+ echo "OIDC token URL present: ${ACTIONS_ID_TOKEN_REQUEST_URL:+yes}${ACTIONS_ID_TOKEN_REQUEST_URL:-NO}"
149+ echo "--- effective .npmrc (auth redacted) ---"
150+ npm config get userconfig
151+ cat "$(npm config get userconfig)" 2>/dev/null | sed 's/\(_authToken=\).*/\1<redacted>/' || echo "(no userconfig .npmrc)"
142152 # No NODE_AUTH_TOKEN and no --provenance: OIDC is auto-detected and provenance
143153 # is attached automatically when publishing via a trusted publisher.
144154 - name : Publish via OIDC trusted publisher
You can’t perform that action at this time.
0 commit comments