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