Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions scripts/ci/codegen/spreadGeneration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ async function spreadGeneration(): Promise<void> {
await emptyDirExceptForDotGit(tempGitDir);
await copy(clientPath, tempGitDir, { preserveTimestamps: true });

// 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,
});
}

if (
(await getNbGitDiff({
head: null,
Expand All @@ -141,15 +148,8 @@ async function spreadGeneration(): Promise<void> {
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 run('git add .', { cwd: tempGitDir });
await gitCommit({
message: commitMessage,
coAuthors: [author, ...coAuthors],
Expand Down