This guide will walk you through the steps to publish Storybook in Chromatic.
Before you start, ensure you have the following:
- Node.js and npm installed
- Storybook set up in your project
- Zesty Chromatic account
First, install all the dependencies
npm install
Second, run the chromatic command. This will publish the current main branch
npm run chromatic
After running the above command, Chromatic will build Storybook and publish it. You can view your published Storybook through the URL provided by Chromatic in the terminal output or checking on the Chromatic admin panel.
Example link: Storybook live site