Skip to content

Commit bce5c97

Browse files
debug
1 parent 43d462e commit bce5c97

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/deploy.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,15 @@ jobs:
8888
if: inputs.command == 'release'
8989
run: sb release
9090

91+
- name: Debug OIDC Claims
92+
run: |
93+
ID_TOKEN=$(curl -s -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=https://registry.npmjs.org" | jq -r .value)
94+
echo "JWT Subject: $(echo $ID_TOKEN | cut -d. -f2 | base64 -d | jq -r .sub)"
95+
9196
- name: publish to npmjs
9297
if: inputs.command == 'publish'
93-
run: npm publish --provenance --access public
98+
run: |
99+
npm install -g npm@latest
100+
npm publish --provenance --access public
94101
env:
95102
NODE_AUTH_TOKEN: "sigstore" # npm uses OIDC when this is any non-empty string

0 commit comments

Comments
 (0)