Skip to content
Snippets Groups Projects
Unverified Commit 1842bdaa authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix(yarn): don't base64 encode npmAuthIdent (#11873)

parent f1a81113
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ Object {
"additionalYarnRcYml": Object {
"npmRegistries": Object {
"//registry.company.com/": Object {
"npmAuthIdent": "dXNlcjEyMzpwYXNzMTIz",
"npmAuthIdent": "user123:pass123",
},
"//registry.npmjs.org": Object {
"npmAuthToken": "token123",
......@@ -33,7 +33,7 @@ Object {
"additionalYarnRcYml": Object {
"npmRegistries": Object {
"//registry.company.com/": Object {
"npmAuthIdent": "dXNlcjEyMzpwYXNzMTIz",
"npmAuthIdent": "user123:pass123",
},
},
},
......
......@@ -38,9 +38,7 @@ export function processHostRules(): HostRulesResult {
additionalNpmrcContent.push(`${uri}:_password=${password}`);
additionalYarnRcYml ||= { npmRegistries: {} };
additionalYarnRcYml.npmRegistries[uri] = {
npmAuthIdent: Buffer.from(
`${hostRule.username}:${hostRule.password}`
).toString('base64'),
npmAuthIdent: `${hostRule.username}:${hostRule.password}`,
};
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment