GH workflows - remove temporary debugging output now trusted publish is working (#57287)

Summary:
Pull Request resolved: https://github.com/react/react-native/pull/57287

Just tidying up some temporary output we no longer need.

Changelog: [Internal]

___

Reviewed By: cortinico

Differential Revision: D109152147

fbshipit-source-id: 812fec3bbf09712b7e7959282e8c3711d84b7e96
This commit is contained in:
Rob Hogan authored and meta-codesync[bot] committed 2026-06-19 07:17:40 -07:00
1 parent 3e8dfb1e64
commit c6110b1a3f
1 file changed
-34
-34
View File
@@ -163,23 +163,6 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
# TEMPORARY DEBUG: print the OIDC token claims npm Trusted Publishing
# matches against. A 404 from the OIDC exchange means these claims don't
# match the Trusted Publisher entry configured on npmjs.com (org/repo/
# workflow filename / environment). Prints only the decoded claims, never
# the raw token. Remove once the 404 is resolved.
- name: Debug OIDC token claims
shell: bash
run: |
# ACTIONS_ID_TOKEN_REQUEST_TOKEN/_URL are auto-injected when the job
# has `id-token: write` - they are NOT secrets, don't map them in env.
OIDC_TOKEN=$(curl -sS -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
"$ACTIONS_ID_TOKEN_REQUEST_URL&audience=npm:registry.npmjs.org" | jq -r '.value')
# Decode the JWT payload (middle segment); convert base64url -> base64
# and pad so `base64 -d` accepts it. Prints claims only, not the token.
payload=$(echo "$OIDC_TOKEN" | cut -d'.' -f2 | tr '_-' '/+')
case $(( ${#payload} % 4 )) in 2) payload+='==';; 3) payload+='=';; esac
echo "$payload" | base64 -d 2>/dev/null | jq .
- name: Build and Publish NPM Package
uses: ./.github/actions/build-npm-package
with:
@@ -205,23 +188,6 @@ jobs:
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
# TEMPORARY DEBUG: print the OIDC token claims npm Trusted Publishing
# matches against. A 404 from the OIDC exchange means these claims don't
# match the Trusted Publisher entry configured on npmjs.com (org/repo/
# workflow filename / environment). Prints only the decoded claims, never
# the raw token. Remove once the 404 is resolved.
- name: Debug OIDC token claims
shell: bash
run: |
# ACTIONS_ID_TOKEN_REQUEST_TOKEN/_URL are auto-injected when the job
# has `id-token: write` - they are NOT secrets, don't map them in env.
OIDC_TOKEN=$(curl -sS -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
"$ACTIONS_ID_TOKEN_REQUEST_URL&audience=npm:registry.npmjs.org" | jq -r '.value')
# Decode the JWT payload (middle segment); convert base64url -> base64
# and pad so `base64 -d` accepts it. Prints claims only, not the token.
payload=$(echo "$OIDC_TOKEN" | cut -d'.' -f2 | tr '_-' '/+')
case $(( ${#payload} % 4 )) in 2) payload+='==';; 3) payload+='=';; esac
echo "$payload" | base64 -d 2>/dev/null | jq .
- name: Run Yarn Install
uses: ./.github/actions/yarn-install
- name: Build packages