v0.9.5
A ready-to-use CI/CD Pipeline and jobs for Chromatic projects.
Attributes
Includes Deno configuration
Repository
Current version released
2 years ago
Dependencies
deno.land/x
other
skypack.dev
lodash
Chromatic Pipeline
A ready-to-use CI/CD Pipeline for your Chromatic Projects. Publishes your Storybook to Chromatic and kicks off tests if they’re enabled.
🚀 Usage
Run the following command:
fluentci run chromatic_pipelineDagger Module
Use as a Dagger Module:
dagger install github.com/fluent-ci-templates/chromatic-pipeline@mainCall publish function from this module:
dagger call publish --src . --token CHROMATIC_PROJECT_TOKENEnvironment Variables
| Variable | Description |
|---|---|
| CHROMATIC_PROJECT_TOKEN | Your Chromatic Project Token. |
| CHROMATIC_VERSION | The version of Chromatic CLI. Defaults to latest. |
Jobs
| Job | Description |
|---|---|
| publish | Publishes your Storybook to Chromatic. |
publish(
src: string | Directory,
token: string | Secret
): Promise<string>Programmatic usage
You can also use this pipeline programmatically:
import { publish } from "https://pkg.fluentci.io/chromatic_pipeline@v0.9.5/mod.ts";
await publish(".", Deno.env.get("CHROMATIC_PROJECT_TOKEN")!);