Skip to content

Commit 7294173

Browse files
authoredDec 5, 2022
update the CI workflow (#341)
1 parent 776c7b6 commit 7294173

File tree

1 file changed

+43
-18
lines changed

1 file changed

+43
-18
lines changed
 

‎.github/workflows/ci.yml

+43-18
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,58 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- name: Checkout 🛎
8-
uses: actions/checkout@v1
8+
uses: actions/checkout@v3
99

1010
- name: NPM install
1111
uses: bahmutov/npm-install@v1
1212

1313
- name: Run tests 🧪
1414
run: npm test
1515

16-
- name: Run demos 📊
17-
run: |
18-
npm run demo
19-
npm run demo2
20-
npm run demo3
21-
npm run demo4
22-
npm run demo5
23-
npm run demo6
24-
npm run demo7
25-
# hmm why are some demos skipped?
26-
npm run demo11
27-
npm run demo12
28-
START_SERVER_AND_TEST_INSECURE=1 npm run demo9
29-
npm run demo-cross-env
30-
npm run demo-commands
31-
npm run demo-multiple
16+
- name: Run demo 1 📊
17+
run: npm run demo
18+
19+
- name: Run demo 2 📊
20+
run: npm run demo2
21+
22+
- name: Run demo 3 📊
23+
run: npm run demo3
24+
25+
- name: Run demo 4 📊
26+
run: npm run demo4
27+
28+
- name: Run demo 5 📊
29+
run: npm run demo5
30+
31+
- name: Run demo 6 📊
32+
run: npm run demo6
33+
34+
- name: Run demo 7 📊
35+
run: npm run demo7
36+
37+
# hmm why are some demos skipped?
38+
39+
- name: Run demo 11 📊
40+
run: npm run demo11
41+
42+
- name: Run demo 12 📊
43+
run: npm run demo12
44+
45+
- name: Run demo 9 📊
46+
run: START_SERVER_AND_TEST_INSECURE=1 npm run demo9
47+
48+
- name: Run demo cross env 📊
49+
run: npm run demo-cross-env
50+
51+
- name: Run demo commands 📊
52+
run: npm run demo-commands
53+
54+
- name: Run demo multiple 📊
55+
run: npm run demo-multiple
3256

3357
- name: Semantic Release 🚀
34-
uses: cycjimmy/semantic-release-action@v2
58+
if: github.ref == 'refs/heads/master'
59+
uses: cycjimmy/semantic-release-action@v3
3560
env:
3661
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3762
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.