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 20701ca commit d72e3fdCopy full SHA for d72e3fd
.github/workflows/publish.yml
@@ -0,0 +1,31 @@
1
+name: Publish to npm
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
8
+jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: actions/setup-node@v4
14
+ with:
15
+ node-version: 20
16
+ - run: npm ci
17
+ - run: npm test
18
19
+ publish-npm:
20
+ needs: build
21
22
23
24
25
26
27
+ registry-url: https://registry.npmjs.org/
28
29
+ - run: npm publish
30
+ env:
31
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
0 commit comments