diff --git a/src/install-pnpm/run.ts b/src/install-pnpm/run.ts index f2e7345..814bad9 100644 --- a/src/install-pnpm/run.ts +++ b/src/install-pnpm/run.ts @@ -28,7 +28,9 @@ export async function runSelfInstaller(inputs: Inputs): Promise { cp.on('close', resolve) }) if (result === 0) { - core.addPath(join(dest, 'node_modules/.bin')) + const pnpmHome = join(dest, 'node_modules/.bin') + core.addPath(pnpmHome) + core.exportVariable('PNPM_HOME', pnpmHome) } return result }