diff --git a/dist/index.js b/dist/index.js index 3bd070c..1e2192b 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/src/index.ts b/src/index.ts index 8f0f6f0..b6734f6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,12 +1,8 @@ -import { inspect } from 'util' -import { setFailed, warning } from '@actions/core' +import { setFailed } from '@actions/core' import getInputs from './inputs' import setOutputs from './outputs' import install from './install' -warning(`EXEC_PATH ${process.execPath}`) -warning(`EXEC_ARGV ${inspect(process.execArgv)}`) - const inputs = getInputs() install(inputs).then(() => { diff --git a/src/install/run.ts b/src/install/run.ts index 1312b6f..9f47c95 100644 --- a/src/install/run.ts +++ b/src/install/run.ts @@ -1,9 +1,10 @@ import { spawn } from 'child_process' +import { execPath } from 'process' import { downloadSelfInstaller } from '../self-installer' import { Inputs } from '../inputs' export function runSelfInstaller(inputs: Inputs): Promise { - const cp = spawn('node', { + const cp = spawn(execPath, { env: { PNPM_VERSION: inputs.version, PNPM_DEST: inputs.dest,