File tree Expand file tree Collapse file tree 2 files changed +65
-45
lines changed
Expand file tree Collapse file tree 2 files changed +65
-45
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Build and Release
2+
3+ on :
4+ push :
5+ tags-ignore :
6+ - ' [0-9]+.[0-9]+.[0-9]+'
7+
8+ jobs :
9+ build :
10+ name : Build
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout Repo
14+ uses : actions/checkout@v2
15+
16+ - name : Setup Git
17+ run : |
18+ git config user.name "GitHub Actions Bot"
19+ git config user.email "<>"
20+
21+ - name : Cache node modules
22+ uses : actions/cache@v2
23+ env :
24+ cache-name : cache-node-modules
25+ with :
26+ path : ~/.npm
27+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
28+ restore-keys : |
29+ ${{ runner.os }}-build-${{ env.cache-name }}-
30+ ${{ runner.os }}-build-
31+ ${{ runner.os }}-
32+
33+ - name : Setup Node
34+ uses : actions/setup-node@v1
35+ with :
36+ node-version : ' 16'
37+
38+ - name : Install Node Packages
39+ working-directory : .source
40+ run : |
41+ npm ci --production=false
42+
43+ - name : Build
44+ run : |
45+ npm run build
46+
47+ release :
48+ name : Release
49+ if : github.ref == 'refs/heads/master'
50+ runs-on : ubuntu-latest
51+ needs :
52+ - build
53+ permissions :
54+ contents : write
55+ steps :
56+ - name : Checkout Repo
57+ uses : actions/checkout@v2
58+
59+ - name : Setup Node
60+ uses : actions/setup-node@v1
61+ with :
62+ node-version : ' 16'
63+
64+ - name : Release
65+ run : npx semantic-release
You can’t perform that action at this time.
0 commit comments