Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
187ace9a18 | ||
|
7f8a57faa8 | ||
|
268b4179de |
18
.github/workflows/test.yaml
vendored
18
.github/workflows/test.yaml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
pnpm:
|
||||
- 4.11.1
|
||||
- 6.17.1
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- macos-latest
|
||||
@ -27,10 +27,10 @@ jobs:
|
||||
- name: Run the action
|
||||
uses: ./
|
||||
with:
|
||||
version: 4.11.1
|
||||
version: 6.17.1
|
||||
|
||||
- name: 'Test: which'
|
||||
run: which pnpm; which pnpx
|
||||
run: which pnpm
|
||||
|
||||
- name: 'Test: install'
|
||||
run: pnpm install
|
||||
@ -44,7 +44,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
pnpm:
|
||||
- 4.11.1
|
||||
- 6.17.1
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- macos-latest
|
||||
@ -56,11 +56,11 @@ jobs:
|
||||
- name: Run the action
|
||||
uses: ./
|
||||
with:
|
||||
version: 4.11.1
|
||||
version: 6.17.1
|
||||
dest: ~/test/pnpm
|
||||
|
||||
- name: 'Test: which'
|
||||
run: which pnpm && which pnpx
|
||||
run: which pnpm
|
||||
|
||||
- name: 'Test: install'
|
||||
run: pnpm install
|
||||
@ -74,7 +74,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
pnpm:
|
||||
- 4.11.1
|
||||
- 6.17.1
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- macos-latest
|
||||
@ -112,11 +112,11 @@ jobs:
|
||||
- name: Run the action
|
||||
uses: ./
|
||||
with:
|
||||
version: 4.11.1
|
||||
version: 6.17.1
|
||||
run_install: ${{ matrix.run_install.value }}
|
||||
|
||||
- name: 'Test: which'
|
||||
run: which pnpm; which pnpx
|
||||
run: which pnpm
|
||||
|
||||
- name: 'Test: install'
|
||||
run: pnpm install
|
||||
|
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> {
|
||||
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')
|
||||
|
||||
await remove(dest)
|
||||
@ -20,7 +20,7 @@ export async function runSelfInstaller(inputs: Inputs): Promise<number> {
|
||||
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)
|
||||
|
||||
const exitCode = await new Promise<number>((resolve, reject) => {
|
||||
|
Loading…
Reference in New Issue
Block a user