We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the user story
As a devops engineer I would like to be able to use fallback values for environment variables similar to what yarn berry allows.
Describe the solution you'd like
in yarn this works as follows in .yarnrc.yml
.yarnrc.yml
scope: npmAlwaysAuth: true npmAuthIdent: "${AUTH_IDENT:-fallback_value}"
so in .npmrc it would be nice to use the same syntax
.npmrc
@scope:registry=https://registry.server/npm/scope/ //registry.server/npm/scope/:_authToken=${AUTH_IDENT:-fallback_value}
Describe the drawbacks of your solution
Cant think of any drawbacks, really.
Describe alternatives you've considered
Otherwise you would need to dynamically create the .npmrc file in your GH actions, which is a hassle.
The text was updated successfully, but these errors were encountered:
I don't have objections.
Sorry, something went wrong.
@zkochan can we get the PR pnpm/components#10 in?
feat: npmrc environment variable fallback
93008ae
close #6018
feat: npmrc environment variable fallback (#6358)
fc8780c
c8ee4fc
Successfully merging a pull request may close this issue.
Describe the user story
As a devops engineer I would like to be able to use fallback values for environment variables similar to what yarn berry allows.
Describe the solution you'd like
in yarn this works as follows in
.yarnrc.yml
so in
.npmrc
it would be nice to use the same syntaxDescribe the drawbacks of your solution
Cant think of any drawbacks, really.
Describe alternatives you've considered
Otherwise you would need to dynamically create the
.npmrc
file in your GH actions, which is a hassle.The text was updated successfully, but these errors were encountered: