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 057d968 commit 03cbefcCopy full SHA for 03cbefc
.github/workflows/npm-publish.yml
@@ -0,0 +1,28 @@
1
+name: npm publish
2
+on:
3
+ release:
4
+ types: [published]
5
+
6
+jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - name: Checkout
11
+ uses: actions/checkout@v3
12
13
+ - name: Install Node
14
+ uses: actions/setup-node@v3
15
+ with:
16
+ node-version: '14.x'
17
+ registry-url: 'https://registry.npmjs.org'
18
19
+ - name: Install Dependencies
20
+ run: yarn
21
22
+ - name: Build & Test
23
+ run: yarn build && yarn test
24
25
+ - name: Publish npm package
26
+ run: yarn publish
27
+ env:
28
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments