30 lines
672 B
YAML
30 lines
672 B
YAML
name: 'Chromatic'
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
chromatic:
|
|
name: Run Chromatic
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
- name: Setup node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22.12.0
|
|
cache: pnpm
|
|
- name: Install dependencies
|
|
run: pnpm i
|
|
- name: Run Chromatic
|
|
uses: chromaui/action@latest
|
|
with:
|
|
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
|
|
# exitZeroOnChanges: false
|