#Chromatic build is failing with Bitbucket pipeline
15 messages · Page 1 of 1 (latest)
Can you build the Storybook locally? with yarn build-storybook?
I am running this command locally ....
Also, wanted to ask, is it normal to take kinda 10 mins to build the stories?
No it is not. we fixed a performance regression in 7.0.3, could you try upgrading to that and see if that improves it?
It is done,
info => Output directory: /Users/hazemalabiad/getir/getirjobs-corporate-web/storybook-static
✨ Done in 359.35s.
But in cloud it is still failing
Here is my pipeline code
- step: &chromatic
name: Publish to Chromatic
image: node:18.15.0-alpine
script:
- apk update && apk add --no-cache git
- yarn install
- yarn chromatic --project-token=$CHROMATIC_PROJECT_TOKEN --zip --only-changed --exit-zero-on-changes
@lone sleet Any idea? Can you help out please?
Can you try building storybook directly in CI instead of using the chromatic CLI, and see if that fails too?
This actually failed in the cloud
With the log that is attached in the first message
But your initial log is from running chromatic, could you try running build-storybook and see if that fails in the same way?
I run yarn build-storybook it worked perfectly without any issue.
Further more, the same code works for Github Actions, but, it does not for BitBucket pipeline
Alright. If it's specifically the chromatic command that's failing, I suggest you use the support chat on chromatic.com instead, as you'll reach the experts there, and reference the learnings from this thread