chromatic
Deploy storybook to Chromatic
Installation
dagger install github.com/fluent-ci-templates/chromatic-pipeline@v0.9.5Entrypoint
Return Type
Chromatic Example
dagger -m github.com/fluent-ci-templates/chromatic-pipeline@a5298ab49d2adc77c04da24678602903109bc3b9 call \
func (m *MyModule) Example() *dagger.Chromatic {
return dag.
Chromatic()
}@function
def example() -> dagger.Chromatic:
return (
dag.chromatic()
)@func()
example(): Chromatic {
return dag
.chromatic()
}Types
Chromatic 🔗
publish() 🔗
Publish storybook to Chromatic
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
| token | Secret ! | - | No description provided |
Example
dagger -m github.com/fluent-ci-templates/chromatic-pipeline@a5298ab49d2adc77c04da24678602903109bc3b9 call \
publish --src DIR_PATH --token env:MYSECRETfunc (m *MyModule) Example(ctx context.Context, src *dagger.Directory, token *dagger.Secret) string {
return dag.
Chromatic().
Publish(ctx, src, token)
}@function
async def example(src: dagger.Directory, token: dagger.Secret) -> str:
return await (
dag.chromatic()
.publish(src, token)
)@func()
async example(src: Directory, token: Secret): Promise<string> {
return dag
.chromatic()
.publish(src, token)
}