fix: add PNPM_HOME env variable

This commit is contained in:
Zoltan Kochan 2022-02-07 03:33:01 +02:00
parent eb99e9e4c7
commit 43a416008e
No known key found for this signature in database
GPG Key ID: 649E4D4AF74E7DEC

View File

@ -28,7 +28,9 @@ export async function runSelfInstaller(inputs: Inputs): Promise<number> {
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
}