Sign inSign up

Back to all FAQs

How do I get the published Storybook output URL through the CI pipeline?

  1. Add the --diagnostics flag to your Chromatic command/script to generate the chromatic-diagnostics.json file.
  2. Store the diagnostics file as a CI artifact, which should let you reference the JSON output and obtain the URL and other outputs needed. Refer to: GitHub artifacts, GitLab artifacts, BitBucket artifacts, CircleCI artifacts, TravisCI artifacts and Jenkins artifacts
  3. Find the Storybook URL under storybookUrl and the Chromatic build URL under webUrl in the chromatic-diagnostics.json file.