We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2efd9b commit a707c68Copy full SHA for a707c68
.github/workflows/publish.yaml
@@ -0,0 +1,31 @@
1
+name: Publish
2
+
3
+on:
4
+ workflow_dispatch:
5
+ push:
6
+ tags:
7
+ - "*"
8
9
+jobs:
10
+ publish:
11
+ runs-on: ubuntu-latest
12
+ env:
13
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
14
15
+ steps:
16
17
+ - uses: actions/checkout@v3
18
19
+ - name: Setup Node.js
20
+ uses: actions/setup-node@v3
21
+ with:
22
+ node-version: 20.x
23
+ cache: "npm"
24
25
+ - run: npm ci
26
27
+ - run: npm run build
28
29
+ - run: npm test
30
31
+ - run: npm publish
0 commit comments