-
Notifications
You must be signed in to change notification settings - Fork 101
35 lines (35 loc) · 995 Bytes
/
vrt.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
name: AUTO Visual Regression Test
on:
push:
branches:
- master
- v7_maintenance
pull_request:
branches:
- master
- v7_maintenance
jobs:
chromatic_deployment:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Node 18
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install project dependencies
run: npm ci
- name: Bootstrap project
run: npm run bootstrap
- name: Build Storybook examples
run: npm run build-storybook
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: d8b52d7c3367 # We have to set this as a string so VRT can be run from forked branches as well.
exitZeroOnChanges: true
storybookBuildDir: ./packages/__examples__/__build__