We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43d462e commit bce5c97Copy full SHA for bce5c97
.github/workflows/deploy.yaml
@@ -88,8 +88,15 @@ jobs:
88
if: inputs.command == 'release'
89
run: sb release
90
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
+
96
- name: publish to npmjs
97
if: inputs.command == 'publish'
- run: npm publish --provenance --access public
98
99
+ npm install -g npm@latest
100
+ npm publish --provenance --access public
101
env:
102
NODE_AUTH_TOKEN: "sigstore" # npm uses OIDC when this is any non-empty string
0 commit comments