Skip to content

Commit

Permalink
ci: add localhost to unsafeHttpWhitelist in Yarn config
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrybczak committed Jan 23, 2024
1 parent 1377330 commit c731877
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/template/initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async function install() {
}

execSync(
'npm publish --registry http://localhost:4873 --access public',
`npm publish --registry ${NPM_REGISTRY_SERVER} --access public`,
{
cwd: packageAbsolutePath,
stdio: [process.stdin, process.stdout, process.stderr],
Expand Down Expand Up @@ -102,6 +102,11 @@ async function install() {
options,
);

execSync(
'yarn config set unsafeHttpWhitelist --json \'["localhost"]\'',
options,
);

const success = await retry('yarn', options, 3, 500, ['install']);

if (!success) {
Expand Down

0 comments on commit c731877

Please sign in to comment.