Skip to content

Commit e42ea6b

Browse files
committed
debug: add npm config debugging for OIDC troubleshooting
1 parent 71d1be9 commit e42ea6b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/actions/npm-publish/action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ runs:
2525
with:
2626
node-version: '20'
2727
registry-url: 'https://registry.npmjs.org'
28+
# Note: OIDC token must be available from parent workflow with id-token: write
2829

2930
- name: Generate version
3031
id: version
@@ -95,6 +96,14 @@ runs:
9596
echo "Version ${VERSION} does not exist, will publish"
9697
fi
9798
99+
- name: Debug npm config
100+
shell: bash
101+
run: |
102+
echo "Checking npm configuration..."
103+
npm config list
104+
echo "ACTIONS_ID_TOKEN_REQUEST_URL: ${ACTIONS_ID_TOKEN_REQUEST_URL:-not set}"
105+
echo "ACTIONS_ID_TOKEN_REQUEST_TOKEN: ${ACTIONS_ID_TOKEN_REQUEST_TOKEN:+is set}"
106+
98107
- name: Publish to npm (with OIDC trusted publishing)
99108
if: steps.check-exists.outputs.exists == 'false'
100109
shell: bash

0 commit comments

Comments
 (0)