-
Notifications
You must be signed in to change notification settings - Fork 4
43 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
43
name: 'Chromatic'
on:
pull_request:
branches: [ "main" ]
types: [opened, synchronize, reopened, closed, ready_for_review]
push:
branches: [ "main" ]
workflow_dispatch:
env:
FIGMA_TOKEN: ${{ secrets.FIGMA_AUTH_TOKEN }}
FONT_AWESOME_AUTH_TOKEN: ${{ secrets.FONT_AWESOME_AUTH_TOKEN }}
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
if: '! github.event.pull_request.draft'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: yarn install --immutable
- name: Publish to Chromatic - Components
uses: chromaui/action@latest
with:
autoAcceptChanges: main
buildScriptName: chromatic-components
exitOnceUploaded: true
projectToken: ${{ secrets.CHROMATIC_TOKEN }}
onlyChanged: true
workingDir: .
- name: Publish to Chromatic - Themes
uses: chromaui/action@v1
with:
autoAcceptChanges: main
buildScriptName: themes
exitOnceUploaded: true
projectToken: ${{ secrets.CHROMATIC_TOKEN_THEMES }}
onlyChanged: true
workingDir: chromatic