-
-
Notifications
You must be signed in to change notification settings - Fork 46
39 lines (31 loc) · 1 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
name: Chromatic PR
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Install dependencies
run: npm ci
- run: npx nx run-many -t build -p @ory/elements-react -p @ory/elements
- run: npx nx run-many --all -t build-storybook -- --stats-json
- uses: chromaui/[email protected]
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitOnceUploaded: true
workingDir: packages/legacy-stories
storybookBuildDir: storybook-static
onlyChanged: true
- uses: chromaui/[email protected]
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN_ELEMENTS_REACT }}
exitOnceUploaded: true
workingDir: packages/elements-react-stories
storybookBuildDir: storybook-static
onlyChanged: true