Skip to content
Snippets Groups Projects
Commit 42145e60 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

refactor: log npmrc

parent 1a6fc179
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment