mirror of
https://github.com/pnpm/action-setup.git
synced 2024-11-10 09:39:11 +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:
parent
2270f39ef6
commit
268b4179de
BIN
dist/index.js
vendored
BIN
dist/index.js
vendored
Binary file not shown.
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user