-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 935 Bytes
/
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
# Name of our action
name: Chromatic
# The event that will trigger the action
on: push
# What the action will do
jobs:
chromatic:
# The operating system it will run on
runs-on: ubuntu-latest
# The list of steps that the action will go through
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
#👇 Fetches all history so Chromatic can compare against previous builds
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Publish to Chromatic
uses: chromaui/action@latest
# Options required for Chromatic's GitHub Action
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitZeroOnChanges: true # 👈 Option to prevent the workflow from failing