We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 419338c commit be4e2c6Copy full SHA for be4e2c6
1 file changed
.github/workflows/publish.yml
@@ -8,22 +8,25 @@ on:
8
jobs:
9
publish:
10
runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ id-token: write
14
steps:
- - uses: actions/checkout@v4
-
15
+ - uses: actions/checkout@v5
16
+
17
- name: Setup Node.js
18
uses: actions/setup-node@v4
19
with:
- node-version: '18'
20
+ node-version: '20.x'
21
registry-url: 'https://registry.npmjs.org'
22
23
- name: Install dependencies
24
run: npm ci
25
26
- name: Build
27
run: npm run build
28
29
- name: Publish to NPM
- run: npm publish
30
+ run: npm publish --provenance --access public
31
env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments