Skip to content

Commit eb1454a

Browse files
authored
feat: add debug messages to rp (#762) (#763)
* feat: add debug messages to rp (#762)
1 parent 58705e2 commit eb1454a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/release-please.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,28 @@ jobs:
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

0 commit comments

Comments
 (0)