File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 11name : ci
22on : [push, pull_request]
33jobs :
4- tests :
4+ tests1 :
55 runs-on : ubuntu-latest
66 steps :
77 - name : Checkout 🛎
88 uses : actions/checkout@v3
99
10+ - name : Node version 🖨️
11+ run : node -v
12+
1013 - name : NPM install
1114 uses : bahmutov/npm-install@v1
1215
3437 - name : Run demo 7 📊
3538 run : npm run demo7
3639
40+ tests2 :
41+ runs-on : ubuntu-latest
42+ steps :
43+ - name : Checkout 🛎
44+ uses : actions/checkout@v3
45+
46+ - name : Node version 🖨️
47+ run : node -v
48+
49+ - name : NPM install
50+ uses : bahmutov/npm-install@v1
3751 # hmm why are some demos skipped?
3852
3953 - name : Run demo 11 📊
5771 - name : Run demo expect 403 code 📊
5872 run : npm run demo-expect-403
5973
74+ release :
75+ needs : ['tests1', 'tests2']
76+ if : github.ref == 'refs/heads/master'
77+ runs-on : ubuntu-latest
78+ steps :
79+ - name : Checkout 🛎
80+ uses : actions/checkout@v3
81+
6082 - name : Semantic Release 🚀
61- if : github.ref == 'refs/heads/master'
6283 uses : cycjimmy/semantic-release-action@v3
6384 env :
6485 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments