From 55e97e284f3d15add516af2799c03e68d5cfe0d8 Mon Sep 17 00:00:00 2001 From: Jan Potoms <2109932+Janpot@users.noreply.github.com> Date: Wed, 22 May 2024 12:14:37 +0200 Subject: [PATCH] [code-infra] Run corepack enable on all CI jobs (#42331) --- .circleci/config.yml | 8 ++++++++ package.json | 3 +++ 2 files changed, 11 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e52d49619d63a7..663b0295a5979e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -75,6 +75,7 @@ commands: node scripts/useReactVersion.mjs # log a patch for maintainers who want to check out this change git --no-pager diff HEAD + - when: condition: << parameters.browsers >> steps: @@ -93,6 +94,13 @@ commands: name: Restore playwright cache keys: - v6-playwright-{{ arch }}-{{ checksum "/tmp/playwright_info.json" }} + - when: + condition: + not: << parameters.browsers >> + steps: + # See https://stackoverflow.com/a/73411601 + - run: corepack enable --install-directory ~/bin + - run: name: View install environment command: | diff --git a/package.json b/package.json index 79dcc384e57a35..7f5e8108211eb5 100644 --- a/package.json +++ b/package.json @@ -184,6 +184,9 @@ "yargs": "^17.7.2" }, "packageManager": "pnpm@8.15.8", + "engines": { + "pnpm": "8.15.8" + }, "resolutions": { "@babel/core": "^7.24.5", "@babel/code-frame": "^7.24.2",