Use execPath
This commit is contained in:
parent
ed88a96c4e
commit
e1bd3c6b13
BIN
dist/index.js
vendored
BIN
dist/index.js
vendored
Binary file not shown.
@ -1,12 +1,8 @@
|
|||||||
import { inspect } from 'util'
|
import { setFailed } from '@actions/core'
|
||||||
import { setFailed, warning } from '@actions/core'
|
|
||||||
import getInputs from './inputs'
|
import getInputs from './inputs'
|
||||||
import setOutputs from './outputs'
|
import setOutputs from './outputs'
|
||||||
import install from './install'
|
import install from './install'
|
||||||
|
|
||||||
warning(`EXEC_PATH ${process.execPath}`)
|
|
||||||
warning(`EXEC_ARGV ${inspect(process.execArgv)}`)
|
|
||||||
|
|
||||||
const inputs = getInputs()
|
const inputs = getInputs()
|
||||||
|
|
||||||
install(inputs).then(() => {
|
install(inputs).then(() => {
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
import { spawn } from 'child_process'
|
import { spawn } from 'child_process'
|
||||||
|
import { execPath } from 'process'
|
||||||
import { downloadSelfInstaller } from '../self-installer'
|
import { downloadSelfInstaller } from '../self-installer'
|
||||||
import { Inputs } from '../inputs'
|
import { Inputs } from '../inputs'
|
||||||
|
|
||||||
export function runSelfInstaller(inputs: Inputs): Promise<number> {
|
export function runSelfInstaller(inputs: Inputs): Promise<number> {
|
||||||
const cp = spawn('node', {
|
const cp = spawn(execPath, {
|
||||||
env: {
|
env: {
|
||||||
PNPM_VERSION: inputs.version,
|
PNPM_VERSION: inputs.version,
|
||||||
PNPM_DEST: inputs.dest,
|
PNPM_DEST: inputs.dest,
|
||||||
|
Loading…
Reference in New Issue
Block a user