diff --git a/dist/index.js b/dist/index.js index 29ff4fe..5c8cd04 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 b0a2a3c..f2f5e60 100644 --- a/src/install-pnpm/run.ts +++ b/src/install-pnpm/run.ts @@ -43,9 +43,11 @@ export async function runSelfInstaller(inputs: Inputs): Promise { addPath(pnpmHome) exportVariable('PNPM_HOME', pnpmHome) + // pnpm expects PNPM_HOME/bin in PATH for global binaries + addPath(path.join(pnpmHome, 'bin')) + // Ensure pnpm bin link exists — npm ci sometimes doesn't create it if (process.platform !== 'win32') { - addPath(path.join(pnpmHome, 'bin')) const pnpmBinLink = path.join(dest, 'node_modules', '.bin', 'pnpm') if (!existsSync(pnpmBinLink)) { await mkdir(path.join(dest, 'node_modules', '.bin'), { recursive: true })