Skip to content

Adding Chromatic action #23

Adding Chromatic action

Adding Chromatic action #23

Workflow file for this run

name: 'Chromatic'
on: push
jobs:
chromatic:
name: Run Chromatic
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Enable Corepack
run: corepack enable
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'yarn'
# FIXME: Because the setup-node action is dumb, we have to manually
# install the dependencies ourselves. See: https://github.com/actions/setup-node/issues/182
- name: Install dependencies
run: yarn install
- name: Run Chromatic
run: yarn build-storybook