Skip to content

Commit 854eb0f

Browse files
feat: update GitHub Actions workflow to include id-token permissions and enable provenance for npm publish
1 parent 91a5e49 commit 854eb0f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write
1113

1214
steps:
1315
- uses: actions/checkout@v4
@@ -25,12 +27,8 @@ jobs:
2527
- name: Build
2628
run: bun run build
2729

28-
- name: Setup npmrc
29-
run: |
30-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
31-
3230
- name: Publish to npm
33-
run: npm publish
31+
run: npm publish --provenance
3432

3533
- name: Create GitHub Release
3634
uses: actions/create-release@v1

0 commit comments

Comments
 (0)