Skip to content

Commit d95c58c

Browse files
committed
build: allow mutable install when installing snapshot builds in docs deployment
The docs deploy job currently tries to inject/install our snapshot builds, but Yarn 2.x doesn't allow it by default.
1 parent 7c57f82 commit d95c58c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/docs-deploy/docs-deps-install.mts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ export async function installDepsForDocsSite(
1616

1717
if (options.frozenLockfile) {
1818
additionalArgs.push(yarnBin.legacy ? '--frozen-lock-file' : '--immutable');
19+
} else if (!yarnBin.legacy) {
20+
additionalArgs.push('--no-immutable');
1921
}
2022

21-
await $`${yarnBin.binary} ${yarnBin.args} --cwd ${repoDirPath} install ${additionalArgs}`;
23+
await $`${yarnBin.binary} ${yarnBin.args} --cwd ${repoDirPath} install ${additionalArgs.join(' ')}`;
2224
}

0 commit comments

Comments
 (0)