forked from ethereum/ethereum-org-website
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.17 KB
/
chromatic.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
# .github/workflows/chromatic.yml
# Workflow name
name: Chromatic Publish and Testing
# Event for the workflow
on:
pull_request:
types:
- opened
- synchronize
- ready_for_review
paths:
# Only run on file changes in any of these paths
- "src/components/**/*"
- "src/pages/**/*"
- "src/layouts/**/*"
- "src/@chakra-ui/**/*"
# List of jobs
jobs:
chromatic-deployment:
# Operating System
runs-on: ubuntu-latest
# Job steps
steps:
# 👇 Version 2 of the action
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 0 # 👈 Required to retrieve git history
- name: Install deps
# 👇 Install dependencies with the same package manager used in the project (replace it as needed), e.g. yarn, npm, pnpm
run: yarn
- name: Publish to Chromatic
# 👇 Adds Chromatic as a step in the workflow
uses: chromaui/action@v1
# Options required for Chromatic's GitHub Action
with:
projectToken: fee8e66c9916
# 👇 Only fail if Storybook contains stories that error
exitZeroOnChanges: true