-
-
Notifications
You must be signed in to change notification settings - Fork 124
49 lines (40 loc) · 1.2 KB
/
chromatic.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
42
43
44
45
46
47
48
49
name: Chromatic
on:
push:
paths:
- clients/**
- .github/workflows/chromatic.yaml
jobs:
chromatic-deployment:
name: "Publish 🎨"
timeout-minutes: 15
runs-on: ubuntu-22.04
env:
POLAR_OPENAPI_SCHEMA_URL: ${{ vars.POLAR_OPENAPI_SCHEMA_URL }}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0 # chromatic requires the full history for it's smartness
- uses: pnpm/action-setup@v4
with:
version: 9.2.0
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version-file: clients/.node-version
cache: "pnpm"
cache-dependency-path: "clients/pnpm-lock.yaml"
- name: Install dependencies
working-directory: ./clients
run: pnpm install
- name: Build SDK
working-directory: ./clients
run: pnpm turbo run build --filter=@polar-sh/sdk
- name: Publish to Chromatic
uses: chromaui/action@v11
with:
projectToken: ${{ secrets.CI_CHROMATIC_PROJECT_TOKEN }}
workingDir: ./clients/apps/web
onlyChanged: true
exitOnceUploaded: true