Skip to content

Commit ab530ee

Browse files
committed
chore(ci): test npm
1 parent ed3f03d commit ab530ee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/create-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109

110110
- name: Debug trusted publishing setup
111111
run: |
112-
echo "=== Trusted Publishing Debug Info ==="
112+
echo "=== CRITICAL: Trusted Publishing Debug Info ==="
113113
echo "Repository: ${{ github.repository }}"
114114
echo "Workflow file: ${{ github.workflow_ref }}"
115115
echo "Workflow name: ${{ github.workflow }}"
@@ -125,6 +125,11 @@ jobs:
125125
echo "=== NPM Config ==="
126126
npm config list
127127
echo ""
128+
echo "=== OIDC Token Test ==="
129+
curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
130+
"$ACTIONS_ID_TOKEN_REQUEST_URL&audience=npm" 2>/dev/null | jq -r '.value' | \
131+
python3 -c "import sys, jwt, json; token=sys.stdin.read().strip(); print(json.dumps(jwt.decode(token, options={'verify_signature': False}), indent=2))" 2>/dev/null || echo "Failed to decode OIDC token"
132+
echo ""
128133
129134
- name: Publish packages to NPM
130135
run: |

0 commit comments

Comments
 (0)