Skip to content

Commit 4c4d150

Browse files
committed
fix: configure npm OIDC trusted publishing correctly
1 parent b3b7bdd commit 4c4d150

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/release-js-package.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- ".github/workflows/release-js-package.yml"
1010

1111
permissions:
12-
id-token: write # Required for OIDC
12+
id-token: write # Required for OIDC
1313
contents: read
1414

1515
concurrency: ${{ github.workflow }}-${{ github.ref }}
@@ -28,10 +28,14 @@ jobs:
2828
uses: actions/setup-node@v3
2929
with:
3030
node-version: 20.x
31+
registry-url: "https://registry.npmjs.org"
3132

3233
- name: Set up pnpm
3334
uses: pnpm/action-setup@v4
3435

36+
- name: Update npm for OIDC support
37+
run: npm install -g npm@latest
38+
3539
- name: Install dependencies
3640
run: pnpm install --frozen-lockfile
3741

packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test": "echo \"Error: no test specified\" && exit 1",
1010
"lint": "eslint . --max-warnings 0",
1111
"build": "tsup",
12-
"publish-sdk": "pnpm run build && npm publish --no-git-checks",
12+
"publish-sdk": "pnpm run build && npm publish --access public --no-git-checks",
1313
"openapi-typegen": "openapi-typescript ../../apps/docs/api-reference/openapi.json -o types/schema.d.ts"
1414
},
1515
"keywords": [],

0 commit comments

Comments
 (0)