We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e496a1 commit 82d2e50Copy full SHA for 82d2e50
.github/workflows/deploy.yml
@@ -0,0 +1,39 @@
1
+name: Deploy to NPM
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - v*
7
8
+jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
11
12
+ permissions:
13
+ contents: read
14
+ id-token: write
15
16
+ steps:
17
+ - name: Checkout code
18
+ uses: actions/checkout@v5
19
20
+ - name: Setup Node.js
21
+ uses: actions/setup-node@v6
22
+ with:
23
+ node-version: '22.19'
24
+ cache: 'npm'
25
+ registry-url: 'https://registry.npmjs.org'
26
27
+ - name: Install dependencies
28
+ run: npm ci
29
30
+ - name: Test package
31
+ run: npm run test
32
33
+ - name: Build package
34
+ run: npm run build
35
36
+ - name: Publish to NPM
37
+ run: npm publish --provenance
38
+ env:
39
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments