Skip to content

Commit

Permalink
allow lock file updates in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Jun 9, 2023
1 parent 1608464 commit b784bf2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/release/__tests__/version.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ describe('Version', () => {
}),
{ spaces: 2 }
);
expect(execaCommand).toHaveBeenCalledWith('yarn task --task=install', {
cwd: path.join(CODE_DIR_PATH, '..'),
expect(execaCommand).toHaveBeenCalledWith('yarn install --mode=update-lockfile', {
cwd: path.join(CODE_DIR_PATH),
stdio: undefined,
});
}
Expand Down
6 changes: 3 additions & 3 deletions scripts/release/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,12 @@ export const run = async (options: unknown) => {
await bumpVersionSources(currentVersion, nextVersion);
await bumpAllPackageJsons({ packages, currentVersion, nextVersion, verbose });

console.log(`⬆️ Updating lock file with ${chalk.blue('yarn install')}`);
await execaCommand(`yarn install`, {
console.log(`⬆️ Updating lock file with ${chalk.blue('yarn install --mode=update-lockfile')}`);
await execaCommand(`yarn install --mode=update-lockfile`, {
cwd: path.join(CODE_DIR_PATH),
stdio: verbose ? 'inherit' : undefined,
});
console.log(`✅ Updated lock file with ${chalk.blue('yarn install')}`);
console.log(`✅ Updated lock file with ${chalk.blue('yarn install --mode=update-lockfile')}`);

if (process.env.GITHUB_ACTIONS === 'true') {
setOutput('current-version', currentVersion);
Expand Down

0 comments on commit b784bf2

Please sign in to comment.