-
Notifications
You must be signed in to change notification settings - Fork 854
34 lines (32 loc) · 1.01 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
name: 'Chromatic'
on:
push:
branches:
- main
# "You must append a colon (:) to all events, including events without configuration."
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-using-multiple-events-with-activity-types-or-configuration
pull_request:
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Read Node version
id: node_version
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
- name: Set Node version
uses: actions/setup-node@v2
with:
node-version: '${{ steps.node_version.outputs.NVMRC }}'
- name: Install dependencies
run: yarn
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: 63f2bd83c33c
exitOnceUploaded: true
exitZeroOnChanges: true