Skip to content

Commit 91482de

Browse files
committed
ci: use oidc for publishing
1 parent 35ed4aa commit 91482de

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99

1010
concurrency: ${{ github.workflow }}-${{ github.ref }}
1111

12+
permissions:
13+
id-token: write
14+
contents: read
15+
1216
jobs:
1317
publish:
1418
if: ${{ github.event.workflow_run.conclusion == 'success' }}
@@ -24,13 +28,12 @@ jobs:
2428
node-version: "24"
2529
cache: "pnpm"
2630
- run: pnpm install --frozen-lockfile
27-
2831
- name: Create Release Pull Request or Publish to npm
2932
id: changesets
3033
uses: changesets/action@v1
3134
with:
3235
publish: pnpm changeset-publish
3336
env:
3437
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38+
NPM_TOKEN: ""
3639
HUSKY: 0

0 commit comments

Comments
 (0)