-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (35 loc) · 926 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
36
37
name: 'Chromatic'
on:
push:
paths:
- 'packages/**'
branches-ignore:
- main
- dependabot/*
- changeset-release/*
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: '18.x'
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock')}}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
token: ${{ secrets.CHROMATIC_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}