Skip to content

docs: fix build (#4582) #595

docs: fix build (#4582)

docs: fix build (#4582) #595

Workflow file for this run

# Workflow name
name: 'Chromatic'
# Event for the workflow
on:
push:
branches:
- develop
# List of jobs
jobs:
chromatic-deployment:
# Operating System
runs-on: ubuntu-latest
# Job steps
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Required to retrieve git history
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22 # Yarn 4 requires Node.js >= 18
- name: Enable Corepack
run: corepack enable
- name: Use Yarn 4.5.0
run: corepack prepare yarn@4.5.0 --activate
- name: Install dependencies
run: yarn install --immutable
# Adds Chromatic as a step in the workflow
- name: Publish to Chromatic
uses: chromaui/action@v1
# Chromatic GitHub Action options
with:
workingDir: packages/ui
exitZeroOnChanges: true
storybookBaseDir: packages/ui
projectToken: chpt_0b6e7d8b20a17cf
buildScriptName: build:storybook