Skip to content

Commit 5dc2e8e

Browse files
committed
Debug logs for OIDC publishing
1 parent 4c08941 commit 5dc2e8e

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ jobs:
4242
node-version: '18'
4343
cache: 'npm'
4444
registry-url: 'https://registry.npmjs.org'
45-
# Use trusted publishing (OIDC) - no token needed!
45+
# For OIDC trusted publishing, no NODE_AUTH_TOKEN is needed
46+
# npm will automatically use the OIDC token from GitHub Actions
4647

4748
- run: npm ci
4849
- run: npm run build
@@ -68,6 +69,15 @@ jobs:
6869
fi
6970
echo "Version verification passed"
7071
72+
# Verify OIDC token is available (for debugging)
73+
- name: Verify OIDC setup
74+
run: |
75+
echo "Repository: ${{ github.repository }}"
76+
echo "Ref: ${{ github.ref }}"
77+
echo "OIDC token available: $([ -n "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" ] && echo "yes" || echo "no")"
78+
# Check if npm can authenticate
79+
npm whoami 2>&1 || echo "Note: npm whoami may fail before publish, this is normal for OIDC"
80+
7181
# Publish to npm using trusted publishing (OIDC)
7282
- name: Publish to npm
7383
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)