utrecht icon indicating copy to clipboard operation
utrecht copied to clipboard

ci: enable TurboSnap for Chromatic to save screenshots

Open Robbert opened this issue 5 months ago • 2 comments

Er is nog een fout:

Set the --storybook-base-dir option as the relative path from the repository root to the Storybook project root.

De setting is nu storybookBuildDir: packages/storybook-css/dist/, looks like a relative path to me! Confusing.

    → Commit '3ab9632' on branch 'ci/turbosnap'; found 1 parent build and 2 changed files
Collecting Storybook metadata
Collected Storybook metadata
    → ; no supported addons found
Initializing build
Initialized build
    → Build 2325 initialized
Publish your built Storybook
    → Validating Storybook files
Retrieving story files affected by recent changes
    → Traversing dependencies for 2 files that changed since the last build
Could not retrieve dependency changes from lockfiles; checking package.json
Failed to retrieve dependent story files
    → Could not retrieve dependent story files.
✖ TurboSnap disabled until base directory is set correctly
The base directory allows TurboSnap to trace files.
Set the --storybook-base-dir option as the relative path from the repository root to the Storybook project root.
Run @chromatic-com/turbosnap-helper to get your base directory value.
Error: non-zero exit code

Turbosnap zegt:

TurboSnap is not compatible with the pull_request trigger or its variations

Daarom heb ik pull_request weggehaald. Ik denk dat we alleen pull_request en push voor de main branch deden, om GitHub Actions te vermijden voordat de branch "pull request waardig" is. Gewoon, om de build queue vrij te houden en CPU cycles te besparen. Niet een technische reden, voor zover ik weet.

https://www.chromatic.com/docs/turbosnap/setup/?ref=chromaticblog.ghost.io#github-pull_request-triggers

Robbert avatar Sep 11 '24 21:09 Robbert