Skip to content

Commit

Permalink
fix(install): add --mode=update-lockfile for yarn v2/v3/v4
Browse files Browse the repository at this point in the history
`yarn install` doesn't work when running from CI, and `--mode=update-lockfile` is sufficient for
what the feature is for.
  • Loading branch information
favna committed Jul 23, 2024
1 parent 3aa5ce3 commit ef02496
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ export function resolveInstallCommand(packageManagerUsed: ReturnType<typeof reso
case 'pnpm':
return 'pnpm install';
case 'yarn-v1':
return 'yarn install';
case 'yarn-v2':
case 'yarn-v3':
case 'yarn-v4':
return 'yarn install';
return 'yarn install --mode=update-lockfile';
case 'npm':
default:
return 'npm install';
Expand Down

0 comments on commit ef02496

Please sign in to comment.