File tree 3 files changed +70
-39
lines changed
3 files changed +70
-39
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
+
4
+ name : Build
5
+
6
+ on : push
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+
12
+ strategy :
13
+ matrix :
14
+ node-version : [12.x]
15
+
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - name : Use Node.js ${{ matrix.node-version }}
19
+ uses : actions/setup-node@v1
20
+ with :
21
+ node-version : ${{ matrix.node-version }}
22
+ - run : yarn
23
+ - run : yarn lint
24
+ - run : yarn test
25
+ env :
26
+ CI : true
27
+ - uses : codecov/codecov-action@v1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ workflow_run :
5
+ workflows : ['Build']
6
+ branches :
7
+ - master
8
+ types :
9
+ - completed
10
+
11
+ jobs :
12
+ publish :
13
+ runs-on : ubuntu-latest
14
+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
15
+
16
+ strategy :
17
+ matrix :
18
+ node-version : [12.x]
19
+
20
+ steps :
21
+ - uses : actions/checkout@v2
22
+ - name : Use Node.js ${{ matrix.node-version }}
23
+ uses : actions/setup-node@v1
24
+ with :
25
+ node-version : ${{ matrix.node-version }}
26
+ - run : yarn
27
+ - run : yarn build
28
+ - id : publish
29
+ uses : JS-DevTools/npm-publish@v1
30
+ with :
31
+ token : ${{ secrets.NPM_TOKEN }}
32
+ - name : Create Release
33
+ if : steps.publish.outputs.type != 'none'
34
+ id : create_release
35
+ uses : actions/create-release@v1
36
+ env :
37
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
+ with :
39
+ tag_name : ${{ steps.publish.outputs.version }}
40
+ release_name : Release ${{ steps.publish.outputs.version }}
41
+ body : ${{ steps.publish.outputs.version }}
42
+ draft : false
43
+ prerelease : false
You can’t perform that action at this time.
0 commit comments