We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c26ee5a commit 33a5d4fCopy full SHA for 33a5d4f
1 file changed
.github/workflows/publish.yaml
@@ -0,0 +1,33 @@
1
+name: Publish to npm
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ contents: read
12
+ id-token: write # needed for npm provenance
13
14
+ steps:
15
+ - name: Checkout
16
+ uses: actions/checkout@v4
17
18
+ - name: Set up Node.js
19
+ uses: actions/setup-node@v4
20
+ with:
21
+ node-version: '22'
22
+ registry-url: 'https://registry.npmjs.org'
23
24
+ - name: Install dependencies
25
+ run: npm ci
26
27
+ - name: Build
28
+ run: npm run build
29
30
+ - name: Publish
31
+ run: npm publish --provenance --access public
32
+ env:
33
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments