File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+ on :
3+ push :
4+ branches :
5+ - master
6+ jobs :
7+ build :
8+ name : Build and upload
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v2
13+ with :
14+ fetch-depth : 0
15+ - name : Setup Node.js
16+ uses : actions/setup-node@v1
17+ with :
18+ node-version : 16
19+ - name : Install dependencies
20+ run : npm install
21+ - name : Build
22+ run : npm run prepack
23+ - name : Upload dist
24+ uses : actions/upload-artifact@v3
25+ with :
26+ name : lib
27+ path : lib
28+
29+ release :
30+ name : Download dist and release
31+ runs-on : ubuntu-latest
32+ needs : build
33+ steps :
34+ - name : Checkout
35+ uses : actions/checkout@v2
36+ with :
37+ fetch-depth : 0
38+ - name : Setup Node.js
39+ uses : actions/setup-node@v1
40+ with :
41+ node-version : 16
42+ - name : Install dependencies
43+ run : npm install
44+ - name : Download dist
45+ uses : actions/download-artifact@v3
46+ with :
47+ name : lib
48+ path : lib
49+ - name : Display dirs
50+ run : ls -R
51+ - name : Release
52+ uses : JS-DevTools/npm-publish@v1
53+ with :
54+ token : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments