ci: chromatic builds (#84)

* ci: chromatic builds

* hotfix: add pnpm install to workflow

* hotfix: add pnpm version
This commit is contained in:
Razboy20
2024-02-09 17:30:12 -06:00
committed by GitHub
parent f045b400a5
commit 708a136a5c
3 changed files with 43 additions and 0 deletions

26
.github/workflows/chromatic.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
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@v2
with:
version: 8.15.1
- name: Install dependencies
run: pnpm install
- name: Publish to Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitZeroOnChanges: true
autoAcceptChanges: "main"