@@ -14,36 +14,37 @@ jobs:
14
14
node-version : [10.x, 12.x]
15
15
16
16
steps :
17
- - name : checkout repo
18
- uses : actions/checkout@v2
19
- - name : Use Node.js ${{ matrix.node-version }}
20
- uses : actions/setup-node@v1
21
- with :
22
- node-version : ${{ matrix.node-version }}
23
- - run : yarn
24
- - run : yarn build
25
- - run : yarn lint
26
- - run : yarn test
27
- - run : bash <(curl -s https://codecov.io/bash)
17
+ - name : checkout repo
18
+ uses : actions/checkout@v2
19
+ - name : Use Node.js ${{ matrix.node-version }}
20
+ uses : actions/setup-node@v1
21
+ with :
22
+ node-version : ${{ matrix.node-version }}
23
+ - run : yarn
24
+ - run : yarn build
25
+ - run : yarn lint
26
+ - run : yarn test
27
+ - run : bash <(curl -s https://codecov.io/bash)
28
28
29
29
publish :
30
30
runs-on : ubuntu-latest
31
31
needs : build
32
32
if : github.ref == 'refs/heads/master'
33
33
steps :
34
- - name : checkout repo
35
- uses : actions/checkout@v2
36
- - name : Set up Node.js
37
- uses : actions/setup-node@master
38
- with :
39
- node-version : 12
40
- - run : yarn
41
- - run : yarn build
42
- - name : Publish if version has been updated
43
- uses : pascalgn/npm-publish-action@1.2.0
44
- with :
45
- tag_name : " v%s"
46
- tag_message : " v%s"
47
- env :
48
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49
- NPM_AUTH_TOKEN : ${{ secrets.QMBOT_NPM_TOKEN }}
34
+ - name : checkout repo
35
+ uses : actions/checkout@v2
36
+ - name : Set up Node.js
37
+ uses : actions/setup-node@master
38
+ with :
39
+ node-version : 12
40
+ - run : yarn
41
+ - run : yarn build
42
+ - name : Publish if version has been updated
43
+ uses : pascalgn/npm-publish-action@1.2.0
44
+ with :
45
+ tag_name : " v%s"
46
+ tag_message : " v%s"
47
+ commit_pattern : " .*"
48
+ env :
49
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50
+ NPM_AUTH_TOKEN : ${{ secrets.QMBOT_NPM_TOKEN }}
0 commit comments