Skip to content

Commit 7a64fb8

Browse files
authored
feat/ci: add support for package provenance on publish (#440)
1 parent b22c0a9 commit 7a64fb8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
id-token: write
17+
1418
steps:
1519
- uses: actions/checkout@v4
1620
# Setup .npmrc file to publish to npm
@@ -19,6 +23,6 @@ jobs:
1923
node-version: '20.x'
2024
registry-url: 'https://registry.npmjs.org'
2125
- run: npm ci
22-
- run: npm publish
26+
- run: npm publish --provenance
2327
env:
2428
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)