File tree 2 files changed +29
-30
lines changed
2 files changed +29
-30
lines changed Original file line number Diff line number Diff line change 10
10
branches : [master]
11
11
12
12
jobs :
13
- build :
13
+ tests :
14
14
runs-on : ubuntu-latest
15
-
16
15
strategy :
17
16
matrix :
18
17
node-version : [10.x, 12.x]
19
-
20
18
steps :
21
19
- uses : actions/checkout@v2
22
20
- name : Use Node.js ${{ matrix.node-version }}
23
21
uses : actions/setup-node@v1
24
22
with :
25
23
node-version : ${{ matrix.node-version }}
26
- - run : yarn
27
- - run : yarn lint
28
- - run : yarn test
24
+ - name : Install node_modules
25
+ run : yarn
26
+ - name : Lint & tscheck
27
+ run : yarn lint
28
+ - name : Tests
29
+ run : yarn test
29
30
env :
30
31
CI : true
31
- - run : yarn build --if-present
32
+ - name : Build
33
+ run : yarn build
34
+
35
+ publish :
36
+ if : github.ref == 'refs/heads/master'
37
+ needs : [tests]
38
+ runs-on : ubuntu-latest
39
+ steps :
40
+ - uses : actions/checkout@v2
41
+ - name : Use Node.js 12
42
+ uses : actions/setup-node@v1
43
+ with :
44
+ node-version : 12.x
45
+ - name : Install node_modules
46
+ run : yarn install
47
+ - name : Build
48
+ run : yarn build
49
+ - name : Semantic Release (publish to npm)
50
+ run : yarn semantic-release
51
+ env :
52
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments