Skip to content

Commit ca307df

Browse files
chore: restore chromatic GH runner
1 parent fb34b32 commit ca307df

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/chromatic.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# .github/workflows/chromatic.yml
2+
3+
# Workflow name
4+
name: Chromatic Publish and Testing
5+
6+
# Event for the workflow
7+
on:
8+
pull_request:
9+
types:
10+
- opened
11+
- synchronize
12+
- ready_for_review
13+
paths:
14+
# Only run on file changes in any of these paths
15+
- "src/components/**/*"
16+
- "src/pages/**/*"
17+
- "src/pages-conditional/**/*"
18+
- "src/templates/**/*"
19+
- "src/@chakra-ui/gatsby-plugin/**/*"
20+
21+
# List of jobs
22+
jobs:
23+
chromatic-deployment:
24+
# Operating System
25+
runs-on: ubuntu-latest
26+
# Job steps
27+
steps:
28+
# 👇 Version 2 of the action
29+
- name: Checkout repo
30+
uses: actions/checkout@v2
31+
with:
32+
fetch-depth: 0 # 👈 Required to retrieve git history
33+
- name: Install deps
34+
# 👇 Install dependencies with the same package manager used in the project (replace it as needed), e.g. yarn, npm, pnpm
35+
run: yarn
36+
- name: Publish to Chromatic
37+
# 👇 Adds Chromatic as a step in the workflow
38+
uses: chromaui/action@v1
39+
# Options required for Chromatic's GitHub Action
40+
with:
41+
projectToken: fee8e66c9916
42+
# 👇 Only fail if Storybook contains stories that error
43+
exitZeroOnChanges: true

0 commit comments

Comments
 (0)