Skip to content

Commit 962ccca

Browse files
author
l0r3x
committed
ci: switch publish workflow to npm Trusted Publishing (OIDC)
Remove NPM_TOKEN secret dependency, use id-token: write permission and --provenance flag for OIDC-based publishing. from CC
1 parent 46ff3fe commit 962ccca

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
publish:
1010
runs-on: self-hosted
11+
permissions:
12+
id-token: write
1113
steps:
1214
- uses: actions/checkout@v4
1315

@@ -26,6 +28,4 @@ jobs:
2628

2729
- name: Publish
2830
working-directory: packages/cli
29-
run: npm publish
30-
env:
31-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)