Skip to content

Commit 81174d1

Browse files
committed
[optimize] enable NPM provenance for publishing
1 parent 26e21b3 commit 81174d1

2 files changed

Lines changed: 4 additions & 36 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
ci:
1313
name: Build / Preview / Release
1414
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
id-token: write
1518
steps:
1619
- uses: actions/checkout@v4
1720

@@ -28,7 +31,7 @@ jobs:
2831

2932
- name: Build & Publish
3033
if: env.IS_RELEASE
31-
run: npm publish
34+
run: npm publish --access public --provenance
3235
env:
3336
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3437

.github/workflows/push.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)