v0.11.2
A ready-to-use CI/CD Pipeline and jobs for Chromatic projects.
Attributes
Includes Deno configuration
Repository
Current version released
a year ago
Dependencies
other
jsr:@std/flags@0.218.2jsr:@std/fmt@0.218.2/colorsjsr:@std/path@0.218.2jsr:@std/testing@0.218.2/assertsjsr:@tsirysndr/env-js@0.1.2jsr:@tsirysndr/exit-js@0.1.0jsr:@tsirysndr/fluent-az-pipelines@0.3jsr:@tsirysndr/fluent-circleci@0.3jsr:@tsirysndr/fluent-codepipeline@0.3jsr:@tsirysndr/fluent-gh-actions@0.3jsr:@tsirysndr/fluent-gitlab-ci@0.5npm:graphql-request@6.1.0npm:graphql@16.8.1npm:lodash@4.17.21npm:node-color-log@11.0.2npm:stringify-tree@1.1.1
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_pipeline🧩 Dagger 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_TOKEN🛠️ Environment 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 "jsr:@fluentci/chromatic";
await publish(".", Deno.env.get("CHROMATIC_PROJECT_TOKEN")!);