Skip to content

Main -> Next

Main -> Next #2835

Workflow file for this run

name: 'Chromatic'
on:
pull_request_target:
jobs:
external-pr-action-approval:
uses: ./.github/workflows/external-pr-action-approval.yml
chromatic:
needs: external-pr-action-approval
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: pnpm/[email protected]
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm sources:core-components
- name: Core Components Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: packages/ui/core-components
exitZeroOnChanges: true # prevent the workflow from failing if there are visual changes