-
Notifications
You must be signed in to change notification settings - Fork 25
42 lines (36 loc) · 1.14 KB
/
chromatic-docs.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
name: Chromatic for Docs
# All pull requests, and
# Workflow dispatch allows you to run this workflow manually from the Actions tab
on:
push:
paths:
- packages/apps/docs/**
jobs:
chromatic:
name: Visual Regression Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # 👈 Required to retrieve git history, needed to determine diffs.
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
with:
version: 8
- name: pnpm install
run: pnpm install
- name: pnpm build (internal dependencies)
run: |
pnpm --filter @kadena/react-ui... build
pnpm --filter @kadena/react-components... build
- name: Publish Storybook
uses: chromaui/action@v1
with:
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
exitOnceUploaded: true
buildScriptName: 'build:storybook'
projectToken: ${{ secrets.DOCS_CHROMATIC_TOKEN }}
workingDir: /packages/apps/docs
autoAcceptChanges: 'main'