2
0
mirror of https://github.com/pnpm/action-setup.git synced 2025-03-13 14:14:34 +08:00

Use includes

This commit is contained in:
Fedor Korotkov 2024-08-23 15:57:21 -04:00 committed by GitHub
parent 9ea357d1dc
commit 37c5a43eed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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: