diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index fc79d8a..e630955 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 diff --git a/dist/index.js b/dist/index.js index 769b124..2b41a3d 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/src/install-pnpm/run.ts b/src/install-pnpm/run.ts index 5395663..efb32f0 100644 --- a/src/install-pnpm/run.ts +++ b/src/install-pnpm/run.ts @@ -8,7 +8,7 @@ import { Inputs } from '../inputs' export async function runSelfInstaller(inputs: Inputs): Promise { 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 { 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((resolve, reject) => {