We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8539ae9 commit 08c6d6eCopy full SHA for 08c6d6e
.github/workflows/publish.yml
@@ -0,0 +1,33 @@
1
+# reference: https://docs.npmjs.com/generating-provenance-statements
2
+
3
+name: Publish
4
5
+on:
6
+ push:
7
+ tags:
8
+ - '*'
9
10
+jobs:
11
+ publish:
12
+ runs-on: ubuntu-latest
13
+ permissions:
14
+ contents: read
15
+ id-token: write
16
17
+ steps:
18
+ - name: Checkout repository
19
+ uses: actions/checkout@v4
20
21
+ - name: Use Node.js 20
22
+ uses: actions/setup-node@v4
23
+ with:
24
+ node-version: 20
25
+ registry-url: 'https://registry.npmjs.org'
26
27
+ - name: Install dependencies
28
+ run: npm ci
29
30
+ - name: Publish package
31
+ run: npm publish --provenance --access public
32
+ env:
33
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments