Skip to content

Commit c3b4a9c

Browse files
committed
test oidc
1 parent 552e825 commit c3b4a9c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,20 @@ jobs:
9292
make_latest: true
9393
allow_updates: true
9494

95+
- name: Verify OIDC auth & config
96+
run: |
97+
echo ">>> Effective npm configs"
98+
npm config list
99+
echo ">>> Show possible .npmrc files"
100+
(echo "~/.npmrc:" && cat ~/.npmrc) || true
101+
(echo ".npmrc in repo:" && cat .npmrc) || true
102+
echo ">>> npm whoami (should work with OIDC)"
103+
npm whoami --registry=https://registry.npmjs.org || true
104+
105+
- name: Remove any legacy token (safety)
106+
run: |
107+
npm config delete //registry.npmjs.org/:_authToken || tru
108+
95109
- name: Install dependencies
96110
run: npm ci
97111

0 commit comments

Comments
 (0)