-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Support env variables in yarnrc #1146
Comments
You can inject runtime environment variables, including variables already defined within the active shell, by rerouting the |
A quick but not that convenient solution, until we add support for setting complex values (Arrays and Objects) through environment variables (e.g. yarn config set --json npmRegistries '{ "//registry.npmjs.org": { "npmAuthToken": "'"${COMPANY_NPM_TOKEN}"'" } }' Note that this command modifies your |
I'm getting around this on CI by setting YARN_NPM_AUTH_TOKEN as an ENV var https://yarnpkg.com/configuration/yarnrc |
@njradford yeah, I am doing the same thing right now. @paul-soporan @arcanis what do you think if we will traverse config here and replace all
If you don't mind I can send a PR |
Fixed in #1341 💫 |
Describe the user story
yarn v1 supports env variables in yarnrc/npmrc:
but v2 doesn't support it in .yarnrc.yml
Describe the solution you'd like
It would be nice to support env variables like in other tools/libraries (for example docker compose)
The text was updated successfully, but these errors were encountered: