mirror of
https://code.forgejo.org/pnpm/action-setup.git
synced 2025-05-18 20:44:44 +00:00
Use execPath
This commit is contained in:
parent
ed88a96c4e
commit
e1bd3c6b13
3 changed files with 4 additions and 7 deletions
|
@ -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<number> {
|
||||
const cp = spawn('node', {
|
||||
const cp = spawn(execPath, {
|
||||
env: {
|
||||
PNPM_VERSION: inputs.version,
|
||||
PNPM_DEST: inputs.dest,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue