mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-26 02:00:52 +01:00
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:
1 parent
c6895a6840
commit
eb1e341b5d
1 file changed
+6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user