Compare commits

..

No commits in common. "187ace9a18efd2535b92cb5ba14b284d4a57c8da" and "2270f39ef63c3edf50be34da68c039eca5e15c15" have entirely different histories.

3 changed files with 11 additions and 11 deletions

View File

@ -15,7 +15,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
pnpm: pnpm:
- 6.17.1 - 4.11.1
os: os:
- ubuntu-latest - ubuntu-latest
- macos-latest - macos-latest
@ -27,10 +27,10 @@ jobs:
- name: Run the action - name: Run the action
uses: ./ uses: ./
with: with:
version: 6.17.1 version: 4.11.1
- name: 'Test: which' - name: 'Test: which'
run: which pnpm run: which pnpm; which pnpx
- name: 'Test: install' - name: 'Test: install'
run: pnpm install run: pnpm install
@ -44,7 +44,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
pnpm: pnpm:
- 6.17.1 - 4.11.1
os: os:
- ubuntu-latest - ubuntu-latest
- macos-latest - macos-latest
@ -56,11 +56,11 @@ jobs:
- name: Run the action - name: Run the action
uses: ./ uses: ./
with: with:
version: 6.17.1 version: 4.11.1
dest: ~/test/pnpm dest: ~/test/pnpm
- name: 'Test: which' - name: 'Test: which'
run: which pnpm run: which pnpm && which pnpx
- name: 'Test: install' - name: 'Test: install'
run: pnpm install run: pnpm install
@ -74,7 +74,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
pnpm: pnpm:
- 6.17.1 - 4.11.1
os: os:
- ubuntu-latest - ubuntu-latest
- macos-latest - macos-latest
@ -112,11 +112,11 @@ jobs:
- name: Run the action - name: Run the action
uses: ./ uses: ./
with: with:
version: 6.17.1 version: 4.11.1
run_install: ${{ matrix.run_install.value }} run_install: ${{ matrix.run_install.value }}
- name: 'Test: which' - name: 'Test: which'
run: which pnpm run: which pnpm; which pnpx
- name: 'Test: install' - name: 'Test: install'
run: pnpm 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> { export async function runSelfInstaller(inputs: Inputs): Promise<number> {
const { version, dest } = inputs const { version, dest } = inputs
const target = version ? `@pnpm/exe@${version}` : '@pnpm/exe' const target = version ? `pnpm@${version}` : 'pnpm'
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://get.pnpm.io/v6.16.js') const response = await fetch('https://pnpm.io/pnpm.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) => {