Skip to content
This repository has been 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

Open
mllustosa opened this issue Mar 20, 2020 · 0 comments
Open

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

mllustosa opened this issue Mar 20, 2020 · 0 comments

Comments

@mllustosa
Copy link

mllustosa commented Mar 20, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant