-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (43 loc) · 1.08 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
43
44
45
46
# .github/workflows/chromatic.yml
# Workflow name
name: "Chromatic"
# Event for the workflow
on:
pull_request:
paths:
- "src/**"
- "static/**"
- "!src/**/*.ts.snap"
types:
- opened
- reopened
- synchronize
- ready_for_review
push:
paths:
- "src/**"
- "static/**"
- "!src/**/*.ts.snap"
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required to retrieve git history
ref: ${{ github.event.pull_request.head.ref }} # Tell the checkout which commit hash to reference
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install dependencies
run: npm ci
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitOnceUploaded: true
# onlyChanged: true
# externals: |
# - 'public/**'