Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Is there a way to use environment variables in the .dsmrc file? #24

@mllustosa

Description

@mllustosa

As the .dsmrc file is a standard JSON file, I'm unsure how to add the authentication token as an environment variable. I don't want to expose the token in the repository and would rather have the CD pipeline to push the changes to DSM.

I'm aware that I could try workarounds, for example, I could maybe replace <authentication token> for the auth token via a shell script on the CI before running the dsm-storybook publish, but that seems a bit hacky to me and I was hoping for proper support.


Also, would it be possible to set the -c flag to the dsm-storybook publish script in order to set the custom .storybook directory? That's the current behavior of storybook's CLI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions