ci(storybook-visual): let snapshot-update runs bootstrap without a baseline

The update_snapshots dispatch path regenerates every snapshot, but the
mandatory baseline download step failed on the unconfigured manifest,
so the very first baseline could never be produced by the workflow.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
DottaandClaude Fable 5 committed 2026-07-31 05:54:35 +00:00
1 parent c6895a6840
commit eb1e341b5d
1 file changed
+6
+6
View File
@@ -56,14 +56,20 @@ jobs:
- name: Cache Storybook visual baseline archive
uses: actions/cache@v6
if: ${{ github.event.inputs.update_snapshots != 'true' }}
with:
path: tests/storybook-visual/.cache
key: storybook-visual-baseline-${{ runner.os }}-${{ hashFiles('tests/storybook-visual/baseline-manifest.json') }}
# Snapshot-update (baseline bootstrap/regeneration) runs regenerate every
# snapshot from scratch, so they must not require an already-published
# baseline — otherwise the very first baseline could never be produced.
- name: Download Storybook visual baseline
if: ${{ github.event.inputs.update_snapshots != 'true' }}
run: pnpm storybook-visual:baseline download
- name: Verify Storybook visual baseline
if: ${{ github.event.inputs.update_snapshots != 'true' }}
run: pnpm storybook-visual:baseline verify
- name: Build Storybook