@@ -163,23 +163,6 @@ jobs:
163163 with :
164164 fetch-depth : 0
165165 fetch-tags : true
166- # TEMPORARY DEBUG: print the OIDC token claims npm Trusted Publishing
167- # matches against. A 404 from the OIDC exchange means these claims don't
168- # match the Trusted Publisher entry configured on npmjs.com (org/repo/
169- # workflow filename / environment). Prints only the decoded claims, never
170- # the raw token. Remove once the 404 is resolved.
171- - name : Debug OIDC token claims
172- shell : bash
173- run : |
174- # ACTIONS_ID_TOKEN_REQUEST_TOKEN/_URL are auto-injected when the job
175- # has `id-token: write` - they are NOT secrets, don't map them in env.
176- OIDC_TOKEN=$(curl -sS -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
177- "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=npm:registry.npmjs.org" | jq -r '.value')
178- # Decode the JWT payload (middle segment); convert base64url -> base64
179- # and pad so `base64 -d` accepts it. Prints claims only, not the token.
180- payload=$(echo "$OIDC_TOKEN" | cut -d'.' -f2 | tr '_-' '/+')
181- case $(( ${#payload} % 4 )) in 2) payload+='==';; 3) payload+='=';; esac
182- echo "$payload" | base64 -d 2>/dev/null | jq .
183166 - name : Build and Publish NPM Package
184167 uses : ./.github/actions/build-npm-package
185168 with :
@@ -205,23 +188,6 @@ jobs:
205188 with :
206189 node-version : ' 24'
207190 registry-url : ' https://registry.npmjs.org'
208- # TEMPORARY DEBUG: print the OIDC token claims npm Trusted Publishing
209- # matches against. A 404 from the OIDC exchange means these claims don't
210- # match the Trusted Publisher entry configured on npmjs.com (org/repo/
211- # workflow filename / environment). Prints only the decoded claims, never
212- # the raw token. Remove once the 404 is resolved.
213- - name : Debug OIDC token claims
214- shell : bash
215- run : |
216- # ACTIONS_ID_TOKEN_REQUEST_TOKEN/_URL are auto-injected when the job
217- # has `id-token: write` - they are NOT secrets, don't map them in env.
218- OIDC_TOKEN=$(curl -sS -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
219- "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=npm:registry.npmjs.org" | jq -r '.value')
220- # Decode the JWT payload (middle segment); convert base64url -> base64
221- # and pad so `base64 -d` accepts it. Prints claims only, not the token.
222- payload=$(echo "$OIDC_TOKEN" | cut -d'.' -f2 | tr '_-' '/+')
223- case $(( ${#payload} % 4 )) in 2) payload+='==';; 3) payload+='=';; esac
224- echo "$payload" | base64 -d 2>/dev/null | jq .
225191 - name : Run Yarn Install
226192 uses : ./.github/actions/yarn-install
227193 - name : Build packages
0 commit comments