From 268b4179dece5a39241ba1036aa27e43bcc3aee7 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Thu, 10 Feb 2022 01:09:45 +0200 Subject: [PATCH 1/3] 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 --- dist/index.js | Bin 568900 -> 568915 bytes src/install-pnpm/run.ts | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 769b1244fa4a79f157e9fc61ad07805e785a4a40..2b41a3d65c38b870f4308862ecdee82660d61274 100644 GIT binary patch delta 96 zcmX?dN9pn%r48S?r5p { 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) => { From 7f8a57faa88490f4d278f181890960755bb5e420 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Thu, 10 Feb 2022 01:16:10 +0200 Subject: [PATCH 2/3] test: update pnpm version --- .github/workflows/test.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index fc79d8a..542517b 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,7 +27,7 @@ jobs: - name: Run the action uses: ./ with: - version: 4.11.1 + version: 6.17.1 - name: 'Test: which' run: which pnpm; which pnpx @@ -44,7 +44,7 @@ jobs: fail-fast: false matrix: pnpm: - - 4.11.1 + - 6.17.1 os: - ubuntu-latest - macos-latest @@ -56,7 +56,7 @@ jobs: - name: Run the action uses: ./ with: - version: 4.11.1 + version: 6.17.1 dest: ~/test/pnpm - name: 'Test: which' @@ -74,7 +74,7 @@ jobs: fail-fast: false matrix: pnpm: - - 4.11.1 + - 6.17.1 os: - ubuntu-latest - macos-latest @@ -112,7 +112,7 @@ jobs: - name: Run the action uses: ./ with: - version: 4.11.1 + version: 6.17.1 run_install: ${{ matrix.run_install.value }} - name: 'Test: which' From 187ace9a18efd2535b92cb5ba14b284d4a57c8da Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Thu, 10 Feb 2022 01:18:35 +0200 Subject: [PATCH 3/3] test: don't check pnpx --- .github/workflows/test.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 542517b..e630955 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -30,7 +30,7 @@ jobs: version: 6.17.1 - name: 'Test: which' - run: which pnpm; which pnpx + run: which pnpm - name: 'Test: install' run: pnpm install @@ -60,7 +60,7 @@ jobs: dest: ~/test/pnpm - name: 'Test: which' - run: which pnpm && which pnpx + run: which pnpm - name: 'Test: install' run: pnpm install @@ -116,7 +116,7 @@ jobs: run_install: ${{ matrix.run_install.value }} - name: 'Test: which' - run: which pnpm; which pnpx + run: which pnpm - name: 'Test: install' run: pnpm install