5 Commits

Author SHA1 Message Date
Zoltan Kochan
0e9c99a89a rename PNPM_HOME to PNPM_HOME_PATH 2022-02-07 23:01:43 +02:00
Zoltan Kochan
9087a16275 rebundle 2022-02-07 22:54:57 +02:00
Zoltan Kochan
9c583927b0 fix: update deps 2022-02-07 22:49:02 +02:00
Zoltan Kochan
43a416008e fix: add PNPM_HOME env variable 2022-02-07 03:33:01 +02:00
Zoltan Kochan
eb99e9e4c7 fix: add pnpm to PATH 2022-02-07 03:26:03 +02:00

View File

@@ -23,16 +23,16 @@ export async function runSelfInstaller(inputs: Inputs): Promise<number> {
const response = await fetch('https://pnpm.js.org/pnpm.js')
response.body.pipe(cp.stdin)
const exitCode = await new Promise<number>((resolve, reject) => {
const result = await new Promise<number>((resolve, reject) => {
cp.on('error', reject)
cp.on('close', resolve)
})
if (exitCode === 0) {
if (result === 0) {
const pnpmHome = join(dest, 'node_modules/.bin')
core.addPath(pnpmHome)
core.exportVariable('PNPM_HOME', pnpmHome)
core.exportVariable('PNPM_HOME_PATH', pnpmHome)
}
return exitCode
return result
}
export default runSelfInstaller