-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (39 loc) · 998 Bytes
/
github_pages.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
42
43
44
45
46
47
48
49
name: Test and Deploy
on:
push:
branches: [main]
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Enable Corepack
run: corepack enable
- name: Install Yarn
run: corepack prepare [email protected] --activate
- name: Install Dependencies
run: yarn install --immutable
- name: Run Lint
run: yarn lint
- name: Check Format
run: yarn pretty:check
- name: Cypress
uses: cypress-io/[email protected]
with:
build: yarn build
start: yarn serve
wait-on: http://localhost:4444
- name: Clean
run: yarn clean:dist
- name: Build
run: yarn build:client
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: '${{ secrets.GITHUB_TOKEN }}'
publish_dir: ./dist/client