This repository was archived by the owner on Jun 2, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +49
-32
lines changed Expand file tree Collapse file tree 3 files changed +49
-32
lines changed Original file line number Diff line number Diff line change
1
+ name : Master Workflow
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ build :
10
+ name : Build
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout
14
+ uses : actions/checkout@v2
15
+ - name : Setup Node.js
16
+ uses : actions/setup-node@v1
17
+ with :
18
+ node-version : 12
19
+ - name : Installing dependencies
20
+ run : yarn install
21
+ - name : Building project
22
+ run : yarn build && yarn build:copy
23
+ - name : Running tests
24
+ run : yarn test
25
+ - name : Uploading dist
26
+ uses : actions/upload-artifact@v1
27
+ with :
28
+ name : dist
29
+ path : dist
30
+
31
+ release :
32
+ needs : build
33
+ name : Release
34
+ runs-on : ubuntu-latest
35
+ steps :
36
+ - name : Setup Node.js
37
+ uses : actions/setup-node@v1
38
+ with :
39
+ node-version : 12
40
+ - name : Download dist
41
+ uses : actions/download-artifact@v1
42
+ with :
43
+ name : dist
44
+ - name : Release
45
+ env :
46
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
48
+ run : npx semantic-release --dry-run
49
+ working-directory : ./dist
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 35
35
"deploy" : " yarn build && yarn build:copy && cd dist && yarn publish && cd .." ,
36
36
"lint" : " eslint --fix \" lib/**/*.js\" *.js" ,
37
37
"test" : " jest" ,
38
- "pretest" : " yarn build" ,
39
38
"report-coverage" : " cat ./coverage/lcov.info | coveralls"
40
39
},
41
40
"dependencies" : {
You can’t perform that action at this time.
0 commit comments