2024-03-15 07:14:45 -07:00
|
|
|
name: Chromatic
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2024-05-08 05:33:53 -07:00
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- packages/design-system/**
|
|
|
|
- .github/workflows/chromatic.yml
|
2024-03-15 07:14:45 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
chromatic:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4.1.1
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- run: corepack enable
|
2024-05-24 03:32:50 -07:00
|
|
|
- uses: actions/setup-node@v4.0.2
|
2024-03-15 07:14:45 -07:00
|
|
|
with:
|
2024-05-24 03:32:50 -07:00
|
|
|
node-version: 20.x
|
2024-03-15 07:14:45 -07:00
|
|
|
cache: 'pnpm'
|
|
|
|
- run: pnpm install --frozen-lockfile
|
|
|
|
|
|
|
|
- name: Publish to Chromatic
|
|
|
|
uses: chromaui/action@latest
|
|
|
|
with:
|
|
|
|
workingDir: packages/design-system
|
|
|
|
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
|