File tree Expand file tree Collapse file tree 3 files changed +69
-28
lines changed
Expand file tree Collapse file tree 3 files changed +69
-28
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v[1-9]+.[0-9]+.[0-9]+*'
7+
8+ jobs :
9+ release :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@v2
14+ - uses : actions/setup-node@v1
15+ - run : |
16+ npm install
17+ npm run build
18+ tar cvzf bundle.tar.gz -C dist/ .
19+ - uses : actions/create-release@v1
20+ id : create_release
21+ env :
22+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
23+ with :
24+ tag_name : ${{ github.ref }}
25+ - uses : actions/upload-release-asset@v1
26+ env :
27+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+ with :
29+ upload_url : ${{ steps.create_release.outputs.upload_url }}
30+ asset_path : ./bundle.tar.gz
31+ asset_name : xsnippet_web-${{ github.ref }}.tar.gz
32+ asset_content_type : application/gzip
Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ - push
5+ - pull_request
6+
7+ jobs :
8+ lint :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - uses : actions/checkout@v2
13+ - uses : actions/setup-node@v1
14+ - run : |
15+ npm install
16+ npm run lint
17+
18+ test :
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - uses : actions/checkout@v2
23+ - uses : actions/setup-node@v1
24+ - run : |
25+ npm install
26+ npm run test
27+
28+ build :
29+ needs : [lint, test]
30+ runs-on : ubuntu-latest
31+
32+ steps :
33+ - uses : actions/checkout@v2
34+ - uses : actions/setup-node@v1
35+ - run : |
36+ npm install
37+ npm run build
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments