Skip to content

Commit

Permalink
try fix yarn modern config settings
Browse files Browse the repository at this point in the history
  • Loading branch information
josefaidt committed Nov 18, 2024
1 parent 4b35521 commit 6331f8c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/integration-tests/src/setup_package_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,18 @@ const initializeYarnModern = async (execaOptions: {
const packageManager = 'yarn';
await execa('npm', ['install', '-g', packageManager], { stdio: 'inherit' });
await execa('yarn', ['init', '-2'], execaOptions);
await execa(packageManager, [
'config',
'set',
'npmRegistryServer',
customRegistry,
]);
await execa(
packageManager,
[
'config',
'set',
`npmRegistries.${customRegistry}.npmAuthToken`,
`"npmRegistries['${customRegistry}'].npmAuthToken`,
customRegistryAuthToken,
],
execaOptions
Expand Down

0 comments on commit 6331f8c

Please sign in to comment.