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