Skip to content

Commit 2754bae

Browse files
committed
fix(ci): build storybook via vp before running chromatic
Chromatic action spawns pnpm directly which isn't on PATH with setup-vp. Build storybook separately and pass storybookBuildDir.
1 parent 5dba50c commit 2754bae

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/chromatic.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ jobs:
3131
node-version: lts/*
3232
cache: true
3333

34+
- name: 🏗️ Build Storybook
35+
run: vp run build-storybook
36+
3437
- name: 🧪 Run Chromatic Visual and Accessibility Tests
3538
uses: chromaui/action@0794e6939fe40ce46a88963f818092afc427da5b # v15.3.0
3639
with:
37-
buildScriptName: vp run build-storybook
40+
storybookBuildDir: storybook-static
3841
env:
3942
CHROMATIC_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }}
4043
CHROMATIC_SHA: ${{ github.event.pull_request.head.sha || github.sha }}

0 commit comments

Comments
 (0)