Skip to content

fix: 馃 remove placeholder for fixed column sample (#1045) #461

fix: 馃 remove placeholder for fixed column sample (#1045)

fix: 馃 remove placeholder for fixed column sample (#1045) #461

# .github/workflows/chromatic.yml
# Workflow name
name: 'Chromatic (Main)'
# Event for the workflow
on:
push:
branches:
- main
jobs:
chromatic-deployment-main:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[skip chromatic]') }}
steps:
# 馃憞 Version 2 of the action
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # 馃憟 Required to retrieve git history
- uses: pnpm/action-setup@v2
with:
version: 8.6.2
- name: Install dependencies
# 馃憞 Install dependencies with the same package manager used in the project (replace it as needed), e.g. yarn, npm, pnpm
run: PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=true pnpm i
# 馃憞 Build storybook with pnpm
- name: Build storybook
run: cd packages/components && pnpm run build.chromatic
# 馃憞 Adds Chromatic as a step in the workflow
- name: Publish to Chromatic
uses: chromaui/action@latest
# Options required to the GitHub Chromatic Action
with:
# 馃憞 Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
# Speedup the build by not waiting until everything is sent to Chromatic
exitOnceUploaded: true
# We don't need tests in the main branch, but want to accept everything
autoAcceptChanges: true
# We need to manually build storybook with pnpm
storybookBuildDir: packages/components/dist/storybook