27 lines
678 B
YAML
27 lines
678 B
YAML
name: 'Chromatic'
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
chromatic:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v3
|
|
with:
|
|
version: 8
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Publish to Chromatic
|
|
uses: chromaui/action@latest
|
|
with:
|
|
projectToken: chpt_e8bd07b0b27d8eb
|
|
exitZeroOnChanges: true
|
|
autoAcceptChanges: 'main'
|