From ac18d218e7a1ce1c437f474ebb0cebc8a867bd44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Fri, 27 May 2022 15:27:59 +0200 Subject: [PATCH] fix(scripts): missing lock file in JS repository --- 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 68b83833632..2fb72cd69ce 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({