Skip to content

chore: node 20

chore: node 20 #12

Workflow file for this run

name: Chromatic CI
on:
# push:
# branches:
# - main
pull_request:
branches:
- main
jobs:
chromatic:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.11.1]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch origin ${{ github.base_ref }} --depth=1
- id: diff
run: echo "::set-output name=changed::$(git diff --name-only origin/${{ github.base_ref }} HEAD --relative ./packages/ui/ | wc -l)"
- name: Install packages
uses: ./.github/actions/install-packages
if: ${{ steps.diff.outputs.changed != '0' }}
- name: Chromatic
uses: chromaui/action@latest
if: ${{ steps.diff.outputs.changed != '0' }}
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: packages/ui
exitZeroOnChanges: true
onlyChanged: true