Skip to content

Commit

Permalink
feat(envVariables): extent possible env variables by NPM_CONFIG_USERC…
Browse files Browse the repository at this point in the history
…ONFIG
  • Loading branch information
Geril authored and amanda-mitchell committed Mar 29, 2023
1 parent 1e408d2 commit 12aaf45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ The object associated with that key is a set of options that should be passed to
- `NPM_PASSWORD`
- `NPM_EMAIL`
- `NPM_CONFIG_REGISTRY`
- `NPM_CONFIG_USERCONFIG`

For any of these variables, if you define a `{UPPER_CASE_REGISTRY_NAME}_{VARIABLE}` environment variable, it will be used instead.

Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function createCallbackWrapper(callbackName) {
'NPM_PASSWORD',
'NPM_EMAIL',
'NPM_CONFIG_REGISTRY',
'NPM_CONFIG_USERCONFIG',
]) {
const overridenValue = env[environmentVariablePrefix + variableName];
if (overridenValue) {
Expand Down

0 comments on commit 12aaf45

Please sign in to comment.