Compare commits

...

3 Commits

Author SHA1 Message Date
Zoltan Kochan
187ace9a18
test: don't check pnpx 2022-02-10 01:18:35 +02:00
Zoltan Kochan
7f8a57faa8
test: update pnpm version 2022-02-10 01:16:10 +02:00
Zoltan Kochan
268b4179de
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
2022-02-10 01:13:09 +02:00
3 changed files with 11 additions and 11 deletions

View File

@ -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

Binary file not shown.

View File

@ -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) => {