diff --git a/dist/index.js b/dist/index.js index 125d25b..9990f15 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/src/install-pnpm/run.ts b/src/install-pnpm/run.ts index 3e555f5..922d79b 100644 --- a/src/install-pnpm/run.ts +++ b/src/install-pnpm/run.ts @@ -119,12 +119,9 @@ Remove one of these versions to avoid version mismatch errors like ERR_PNPM_BAD_ return version } - // Extract the version from the packageManager field so self-update - // installs it explicitly. Relying on pnpm's auto-switching can cause - // the bootstrap version to modify the lockfile when it differs from - // the target version. + // pnpm will automatically download and switch to the right version if (typeof packageManager === 'string' && packageManager.startsWith('pnpm@')) { - return packageManager.replace('pnpm@', '').split('+')[0] + return undefined } if (devEngines?.packageManager?.name === 'pnpm' && devEngines.packageManager.version) {