-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (38 loc) · 1.08 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: ci
on: push
jobs:
test:
# https://github.com/bahmutov/cypress-workflows
uses: bahmutov/cypress-workflows/.github/workflows/split.yml@v1
with:
n: 3
command: npm test
test-collect:
runs-on: ubuntu-20.04
steps:
# https://github.com/actions/checkout
- name: Check out source code 🛎
uses: actions/checkout@v3
with:
# check out all commits to get accurate created date
fetch-depth: 0
- uses: bahmutov/npm-install@v1
- name: Print fiddles 🖨️
run: npm run demo:collect
env:
# we do not need to install Cypress to run this test
CYPRESS_INSTALL_BINARY: 0
release:
needs: ['test', 'test-collect']
runs-on: ubuntu-20.04
steps:
- name: Checkout 🛎
uses: actions/checkout@v3
- name: Semantic Release 🚀
uses: cycjimmy/semantic-release-action@v3
if: github.ref == 'refs/heads/main'
with:
branch: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}