Skip to content

Commit be4e2c6

Browse files
committed
fix: workflow
1 parent 419338c commit be4e2c6

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,25 @@ on:
88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
1114
steps:
12-
- uses: actions/checkout@v4
13-
15+
- uses: actions/checkout@v5
16+
1417
- name: Setup Node.js
1518
uses: actions/setup-node@v4
1619
with:
17-
node-version: '18'
20+
node-version: '20.x'
1821
registry-url: 'https://registry.npmjs.org'
19-
22+
2023
- name: Install dependencies
2124
run: npm ci
22-
25+
2326
- name: Build
2427
run: npm run build
25-
28+
2629
- name: Publish to NPM
27-
run: npm publish
30+
run: npm publish --provenance --access public
2831
env:
29-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)