chromatic
Deploy storybook to Chromatic
Installation
dagger install github.com/fluent-ci-templates/chromatic-pipeline@v0.9.5
Entrypoint
Return Type
Chromatic
Example
dagger -m github.com/fluent-ci-templates/chromatic-pipeline@a5298ab49d2adc77c04da24678602903109bc3b9 call \
func (m *myModule) example() *Chromatic {
return dag.
Chromatic()
}
@function
def example() -> dag.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:MYSECRET
func (m *myModule) example(ctx context.Context, src *Directory, token *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)
}