-
Notifications
You must be signed in to change notification settings - Fork 119
41 lines (32 loc) · 1.05 KB
/
chromatic-ci.yaml
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
name: Chromatic CI
on:
push:
env:
BROWSERSLIST_IGNORE_OLD_DATA: 1
jobs:
chromatic-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # needed by chromatic for git history
- uses: actions/setup-node@v3
with:
node-version: 18.x
- name: PNPM cache via actions/cache@v3
id: pnpm-cache
uses: actions/cache@v3
with:
path: /home/runner/work/design-system/design-system/common/temp/pnpm-store/v3
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies
run: node common/scripts/install-run-rush.js install
- name: Build components
run: node common/scripts/install-run-rush.js build --timeline
- name: Build Storybook
working-directory: ./
env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
run: node common/scripts/install-run-rush.js build:storybook