Skip to content

Commit 742bbef

Browse files
committed
fix: npm trusted publishers
1 parent 38c8d3e commit 742bbef

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/actions/cache-setup/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ runs:
2020
uses: actions/setup-node@v4
2121
with:
2222
node-version: 20
23+
registry-url: 'https://registry.npmjs.org'
2324
cache: 'pnpm'
2425
- name: Install dependencies
2526
run: pnpm install --frozen-lockfile

.github/workflows/publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ jobs:
5757
- name: Cache PNPM install and Turbo
5858
uses: ./.github/actions/cache-setup
5959

60+
- name: Configure npm registry for OIDC auth
61+
uses: actions/setup-node@v4
62+
with:
63+
registry-url: 'https://registry.npmjs.org'
64+
65+
- name: Verify npm auth
66+
run: npm whoami --registry=https://registry.npmjs.org/
67+
6068
- name: Build
6169
if: inputs.skip_checks == false
6270
run: pnpm build

0 commit comments

Comments
 (0)