diff --git a/.github/workflows/chromatic.yaml b/.github/workflows/chromatic.yaml new file mode 100644 index 00000000..1cdb47c6 --- /dev/null +++ b/.github/workflows/chromatic.yaml @@ -0,0 +1,30 @@ +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