How do I get the published Storybook output URL through the CI pipeline?
- Add the
--diagnostics
flag to your Chromatic command/script to generate thechromatic-diagnostics.json
file. - 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
- Find the Storybook URL under
storybookUrl
and the Chromatic build URL underwebUrl
in thechromatic-diagnostics.json
file.