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 8dbcce5 commit ecb6d15Copy full SHA for ecb6d15
.github/workflows/publish.yml
@@ -0,0 +1,36 @@
1
+name: Publish to npm
2
+
3
+on:
4
+ pull_request:
5
+ branches:
6
+ - master
7
+ push:
8
9
10
11
+jobs:
12
+ install:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v1
16
+ - uses: actions/setup-node@v1
17
+ with:
18
+ node-version: 12
19
+ - run: |
20
+ yarn install
21
+ yarn test
22
23
+ publish-npm:
24
+ needs: install
25
26
27
28
29
30
31
+ registry-url: https://registry.npmjs.org/
32
+ - run: npx semantic-release
33
+ env:
34
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36
+ GH_TOKEN: ${{ secrets.GH_TOKEN }}
.travis.yml
0 commit comments