Skip to content

Commit 462985b

Browse files
committed
ci: add npm oidc debug step
1 parent 3fbe8ee commit 462985b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,20 @@ jobs:
3535
run: yarn install --immutable
3636
- name: Build packages
3737
run: yarn build
38+
- name: Prepare npmrc for OIDC
39+
run: |
40+
echo "@reflag:registry=https://registry.npmjs.org/" > "${RUNNER_TEMP}/.npmrc"
41+
- name: Debug npm auth (non-fatal)
42+
run: |
43+
npm --version
44+
npm config get userconfig
45+
npm config get registry
46+
npm whoami --registry https://registry.npmjs.org || true
3847
- name: Publish
3948
run: yarn lerna publish from-package --no-private --yes
4049
env:
4150
NODE_AUTH_TOKEN: ""
51+
NPM_CONFIG_USERCONFIG: "${{ runner.temp }}/.npmrc"
4252
NPM_CONFIG_PROVENANCE: "true"
4353
NPM_CONFIG_ACCESS: "public"
4454
- name: Build docs

0 commit comments

Comments
 (0)