-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 997 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
# .github/workflows/chromatic.yml
name: "Chromatic"
# https://www.chromatic.com/docs/github-actions/#recommended-configuration-for-build-events
on: push
jobs:
chromatic:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
env:
NPM_TOKEN: ${{ secrets.JFROG_ACCESS_TOKEN }}
run: |
echo -e "\n//dpbuild.jfrog.io/:_authToken=${NPM_TOKEN}" >> .npmrc
npm ci
- name: Publish to Chromatic
uses: chromaui/action@latest
with:
# ⚠️ Make sure to configure a `CHROMATIC_PROJECT_TOKEN` repository secret
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
autoAcceptChanges: "main" # 👈 Option to accept all changes on main
exitOnceUploaded: true
skip: "@(renovate/**|dependabot/**)" # 👈 Option to skip Chromatic for certain branches
zip: true