mirror of
https://github.com/pnpm/action-setup.git
synced 2024-12-23 08:26:29 +08:00
Update src/install-pnpm/run.ts
This commit is contained in:
parent
44def7846a
commit
d5bd7e8c9a
|
@ -109,13 +109,13 @@ function getPnpmVersionFromLockfile(
|
||||||
): string | undefined {
|
): string | undefined {
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case lockfileVersion === '5.3':
|
case lockfileVersion === '5.3':
|
||||||
return '6';
|
return 'latest-6';
|
||||||
case lockfileVersion === '5.4':
|
case lockfileVersion === '5.4':
|
||||||
return '7';
|
return 'latest-7';
|
||||||
case lockfileVersion === '6.0' || lockfileVersion === '6.1':
|
case lockfileVersion === '6.0' || lockfileVersion === '6.1':
|
||||||
return '8';
|
return 'latest-8';
|
||||||
case lockfileVersion === '7.0' || lockfileVersion === '9.0':
|
case lockfileVersion === '7.0' || lockfileVersion === '9.0':
|
||||||
return '9';
|
return 'latest-9';
|
||||||
default:
|
default:
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user