File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 4444 if : ${{ steps.release.outputs.release_created }}
4545 run : npx tsc
4646
47+ - name : Debug OIDC Token
48+ if : ${{ steps.release.outputs.release_created }}
49+ run : |
50+ echo "=== OIDC Debug Info ==="
51+ echo "Repository: $GITHUB_REPOSITORY"
52+ echo "Workflow: $GITHUB_WORKFLOW"
53+ echo "Job: $GITHUB_JOB"
54+ echo "Run ID: $GITHUB_RUN_ID"
55+ echo "Ref: $GITHUB_REF"
56+ echo "Token URL available: ${{ env.ACTIONS_ID_TOKEN_REQUEST_URL != '' }}"
57+ echo "=== Requesting OIDC token for npm ==="
58+ if [ -n "$ACTIONS_ID_TOKEN_REQUEST_URL" ]; then
59+ if OIDC_RESPONSE=$(curl -sS -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
60+ "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=npm" 2>/dev/null); then
61+ echo "✓ OIDC token request succeeded"
62+ else
63+ echo "✗ Failed to get OIDC token"
64+ fi
65+ else
66+ echo "✗ ACTIONS_ID_TOKEN_REQUEST_URL is not set - id-token permission may be missing"
67+ fi
68+
4769 - name : Publish to NPM
4870 if : ${{ steps.release.outputs.release_created }}
4971 run : npm publish --provenance --access public
You can’t perform that action at this time.
0 commit comments