Skip to main content

Chromatic

Run the following command to run the pre-built Chromatic Pipeline in your project to publish your storybook to Chromatic:

fluentci run chromatic publish

Environment variables

VariableDescription
CHROMATIC_PROJECT_TOKENYour Chromatic Project Token

Jobs

JobDescription
publishPublishes your Storybook to Chromatic.

Programmatic usage

You can also use this pipeline programmatically:

import { publish } from "jsr:@fluentci/chromatic";

await publish();

CI/CD integrations

The following example shows how to integrate FluentCI with popular CI providers to publish your Storybook to Chromatic:

ci.yml
name: 
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: chromatic
args: |
publish
env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}