File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : publish
2+
3+ on : release
4+
5+ jobs :
6+ test :
7+ name : Test
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v1
11+ - uses : actions/setup-node@v1
12+ with :
13+ node-version : 12
14+ - run : npm ci
15+ - run : npm test
16+
17+ build :
18+ name : Build binaries
19+ needs : test
20+ runs-on : ubuntu-latest
21+ steps :
22+ - uses : actions/checkout@v1
23+ - uses : actions/setup-node@v1
24+ with :
25+ node-version : 12
26+ registry-url : https://registry.npmjs.org/
27+ - name : npm run build
28+ run : |
29+ npm install
30+ npm run build
31+ - name : upload linux binary
32+ uses : actions/upload-artifact@master
33+ with :
34+ name : https-localhost-linux
35+ path : build
36+ - name : upload macos binary
37+ uses : actions/upload-artifact@master
38+ with :
39+ name : https-localhost-macos
40+ path : build
41+ - name : upload windows binary
42+ uses : actions/upload-artifact@master
43+ with :
44+ name : https-localhost-win.exe
45+ path : build
46+
47+ npm-publish :
48+ name : Publish NPM
49+ needs : test
50+ runs-on : ubuntu-latest
51+ steps :
52+ - uses : actions/checkout@v1
53+ - uses : actions/setup-node@v1
54+ with :
55+ node-version : 12
56+ registry-url : https://registry.npmjs.org/
57+ - run : npm publish
58+ env :
59+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
You can’t perform that action at this time.
0 commit comments