mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
refactor: log npmrc
This commit is contained in:
parent
1a6fc179c5
commit
42145e60fc
2 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,7 @@ function decryptConfig(config, privateKey) {
|
|||
}
|
||||
/* eslint-enable no-template-curly-in-string */
|
||||
} else {
|
||||
logger.debug('Adding npmrc to config');
|
||||
decryptedConfig.npmrc = `//registry.npmjs.org/:_authToken=${token}\n`;
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -121,6 +121,7 @@ async function mergeRenovateConfig(config) {
|
|||
const decryptedConfig = decryptConfig(migratedConfig, config.privateKey);
|
||||
// istanbul ignore if
|
||||
if (decryptedConfig.npmrc) {
|
||||
logger.debug('Found npmrc in decrypted config - setting');
|
||||
npmApi.setNpmrc(
|
||||
decryptedConfig.npmrc,
|
||||
config.global ? config.global.exposeEnv : false
|
||||
|
|
Loading…
Reference in a new issue