name: Chromatic on: pull_request: branches: - main jobs: chromatic-deployment: runs-on: ubuntu-latest env: NODE_OPTIONS: '--max_old_space_size=4096' steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup node uses: actions/setup-node@v4 with: node-version: 20 cache: npm - name: Install dependencies run: npm ci - name: Publish to Chromatic uses: chromaui/action@v1 with: projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} buildScriptName: build:chromatic exitOnceUploaded: true