feat(ui): INFRA-509 migrate from CSF2 to CSF3. Fixed storybook (#5234) #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Chromatic sync baseline | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'packages/ui/src/**' | |
jobs: | |
chromatic: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code with submodules | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
ssh-key: ${{ secrets.SSH_DOCK_SERVER_PRIVATE_KEY }} | |
- name: Install packages | |
run: | | |
npm i -g turbo | |
yarn install --immutable | |
- name: Publish chromatic build | |
uses: chromaui/action@v1 | |
with: | |
workingDir: packages/ui | |
projectToken: ${{ secrets.UI_CHROMATIC_PROJECT_TOKEN }} | |
buildScriptName: "build:sb" | |
# Auto-accepting build as a baseline | |
autoAcceptChanges: true |