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 1556d0e commit 7a38c3bCopy full SHA for 7a38c3b
.github/workflows/publish.yml
@@ -0,0 +1,32 @@
1
+name: Publish to NPM
2
+
3
+on:
4
+ workflow_dispatch:
5
+ push:
6
+ tags:
7
+ - 'v*'
8
9
+jobs:
10
+ publish:
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: read
14
+ id-token: write
15
+ steps:
16
+ - name: Checkout
17
+ uses: actions/checkout@v4
18
19
+ - name: Setup Node.js
20
+ uses: actions/setup-node@v4
21
+ with:
22
+ node-version: '20'
23
+ registry-url: 'https://registry.npmjs.org'
24
25
+ - name: Install Dependencies
26
+ run: npm ci
27
28
+ - name: Build
29
+ run: npm run build
30
31
+ - name: Publish to NPM
32
+ run: npm publish --provenance --access public
0 commit comments