mirror of
https://github.com/pnpm/action-setup.git
synced 2025-03-13 22:24:34 +08:00
Use includes
This commit is contained in:
parent
9ea357d1dc
commit
37c5a43eed
@ -58,7 +58,7 @@ async function readTarget(opts: {
|
||||
|
||||
if (version) {
|
||||
if (
|
||||
typeof packageManager === 'string' && packageManager.contains("pnpm@") &&
|
||||
typeof packageManager === 'string' && packageManager.includes("pnpm@") &&
|
||||
packageManager.replace('pnpm@', '') !== version
|
||||
) {
|
||||
throw new Error(`Multiple versions of pnpm specified:
|
||||
|
Loading…
x
Reference in New Issue
Block a user