From 43a416008ea416b8e636fe1aa189921df6f18d48 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Mon, 7 Feb 2022 03:33:01 +0200 Subject: [PATCH] fix: add PNPM_HOME env variable --- src/install-pnpm/run.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }