From 97e345c8220e5802059bb54143fbc9d5b164817a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Fri, 27 May 2022 15:39:43 +0200 Subject: [PATCH] fix(scripts): missing lock file in JS repository (#574) --- scripts/ci/codegen/spreadGeneration.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/ci/codegen/spreadGeneration.ts b/scripts/ci/codegen/spreadGeneration.ts index 68b8383363..2fb72cd69c 100644 --- a/scripts/ci/codegen/spreadGeneration.ts +++ b/scripts/ci/codegen/spreadGeneration.ts @@ -141,6 +141,13 @@ async function spreadGeneration(): Promise { const version = getPackageVersionDefault(lang); const commitMessage = cleanUpCommitMessage(lastCommitMessage, version); + // We want to ensure we have an up to date `yarn.lock` in the JS client repository + if (lang === 'javascript') { + await run('YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install', { + cwd: tempGitDir, + }); + } + await configureGitHubAuthor(tempGitDir); await run(`git add .`, { cwd: tempGitDir }); await gitCommit({