Skip to content

Set environmental variables via npm script and command line #14292

Answered by bahmutov
TossExecutor asked this question in CI setup
Discussion options

You must be logged in to vote

Seems your shell does not interpolate variables inside npm run scripts. I have no idea what it does or why it does not work as other shells. I have recorded a video showing my experience with passing the environment variables: https://youtu.be/jAiYePsxPl4 At the end I suggest using the plugin file to grab the environment variables and avoid relying on the shell.

Replies: 8 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@TossExecutor
Comment options

Comment options

You must be logged in to vote
3 replies
@BudaPavel
Comment options

@TossExecutor
Comment options

@BudaPavel
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@TossExecutor
Comment options

@BudaPavel
Comment options

@TossExecutor
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by bahmutov
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants