mirror of
				https://github.com/pnpm/action-setup.git
				synced 2025-10-31 23:33:58 +08:00 
			
		
		
		
	Install the self-contained binary version of pnpm
This is a breaking change because the binary version of pnpm is only available from v6.17.1 close #18
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
											
										
									
								
							| @@ -8,7 +8,7 @@ import { Inputs } from '../inputs' | |||||||
|  |  | ||||||
| export async function runSelfInstaller(inputs: Inputs): Promise<number> { | export async function runSelfInstaller(inputs: Inputs): Promise<number> { | ||||||
|   const { version, dest } = inputs |   const { version, dest } = inputs | ||||||
|   const target = version ? `pnpm@${version}` : 'pnpm' |   const target = version ? `@pnpm/exe@${version}` : '@pnpm/exe' | ||||||
|   const pkgJson = path.join(dest, 'package.json') |   const pkgJson = path.join(dest, 'package.json') | ||||||
|  |  | ||||||
|   await remove(dest) |   await remove(dest) | ||||||
| @@ -20,7 +20,7 @@ export async function runSelfInstaller(inputs: Inputs): Promise<number> { | |||||||
|     stdio: ['pipe', 'inherit', 'inherit'], |     stdio: ['pipe', 'inherit', 'inherit'], | ||||||
|   }) |   }) | ||||||
|  |  | ||||||
|   const response = await fetch('https://pnpm.io/pnpm.js') |   const response = await fetch('https://get.pnpm.io/v6.16.js') | ||||||
|   response.body.pipe(cp.stdin) |   response.body.pipe(cp.stdin) | ||||||
|  |  | ||||||
|   const exitCode = await new Promise<number>((resolve, reject) => { |   const exitCode = await new Promise<number>((resolve, reject) => { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zoltan Kochan
					Zoltan Kochan