-
Notifications
You must be signed in to change notification settings - Fork 124
50 lines (38 loc) · 1.06 KB
/
deploy.yml
File metadata and controls
50 lines (38 loc) · 1.06 KB
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
50
name: Deploy
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Setup Node.js environment
uses: actions/setup-node@v4.4.0
- name: Install Dependencies
run: npm i
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Tests
run: npm run test:ci
- name: Run Tests again
run: npm run test:ci
- name: Upload storybook to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5.4.3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Run Build
run: npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.7.3
with:
branch: gh-pages
folder: dist
clean: false