We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4287a9 commit c38eef5Copy full SHA for c38eef5
.github/workflows/publish.yml
@@ -0,0 +1,33 @@
1
+name: Publish to npm
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+jobs:
8
+ publish:
9
+ name: Publish to npm
10
+ runs-on: ubuntu-latest
11
+ environment: npm
12
13
+ steps:
14
+ - name: Checkout code
15
+ uses: actions/checkout@v4
16
17
+ - name: Setup Node.js
18
+ uses: actions/setup-node@v4
19
+ with:
20
+ node-version: "22"
21
+ registry-url: "https://registry.npmjs.org"
22
+ cache: npm
23
24
+ - name: Install dependencies
25
+ run: npm ci
26
27
+ - name: Build project
28
+ run: npm run build
29
30
+ - name: Publish to npm
31
+ run: npm publish
32
+ env:
33
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments