mirror of
				https://github.com/pnpm/action-setup.git
				synced 2025-10-31 09:22:11 +08:00 
			
		
		
		
	Use execPath
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -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(() => { | ||||
|   | ||||
| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user