Skip to content

Commit 17f5c7e

Browse files
committed
npm provenance
1 parent 4b2d031 commit 17f5c7e

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
if: github.event_name == 'workflow_dispatch' || startsWith(github.event.head_commit.message, 'v')
15+
permissions:
16+
contents: read
17+
id-token: write
1518
steps:
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-node@v2
19+
- uses: actions/checkout@v3
20+
- uses: actions/setup-node@v3
1821
with:
19-
node-version: '16.x'
22+
node-version: '18.x'
2023
registry-url: 'https://registry.npmjs.org'
21-
- run: npm publish --access public
24+
- run: npm publish --provenance --access public
2225
env:
2326
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)