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({