-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (42 loc) · 1.23 KB
/
chromatic.yml
File metadata and controls
50 lines (42 loc) · 1.23 KB
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
50
name: 'Chromatic'
on: push
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
# Turborepo remote caching
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
GPR_TOKEN: ${{ secrets.GPR_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
PUBLIC_API_URL_HTTP: ${{ vars.PUBLIC_API_URL_HTTP }}
PUBLIC_API_URL_WS: ${{ vars.PUBLIC_API_URL_WS }}
steps:
# Setup
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: 'recursive'
token: ${{ secrets.PRIVATE_REPO_TOKEN }}
- uses: pnpm/action-setup@v2.0.1
with:
version: 8.5.0
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build svelte-og
working-directory: packages/svelte-og
run: pnpm build
- name: Build web
working-directory: apps/web
run: pnpm build
# Deploy to Chromatic
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
workingDir: apps/web
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}