From 07e8796387782b99ce12c71291fce0590bba64a2 Mon Sep 17 00:00:00 2001 From: Bogusz Kaszowski Date: Fri, 6 Dec 2024 17:49:41 +0100 Subject: [PATCH] chore: update yarn --- .circleci/config.yml | 24 ++++++++++++++++++++---- .yarnrc.yml | 1 + package.json | 3 ++- 3 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 .yarnrc.yml diff --git a/.circleci/config.yml b/.circleci/config.yml index d1006c3ead..0e23dc456c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,6 +13,17 @@ commands: at: ~/react-native-paper jobs: + update-yarn: + executor: default + steps: + - checkout + - attach_project + - run: + name: "Enable Corepack and upgrade Yarn" + command: | + sudo corepack enable + yarn set version berry + yarn install-dependencies: executor: default steps: @@ -29,9 +40,11 @@ jobs: - run: name: Install dependencies command: | - yarn install --cwd example --frozen-lockfile - yarn install --cwd docs --frozen-lockfile - yarn install --frozen-lockfile + sudo corepack enable + yarn set version berry + yarn --cwd example --frozen-lockfile + yarn --cwd docs --frozen-lockfile + yarn --frozen-lockfile - save_cache: key: dependencies-{{ checksum "package.json" }} paths: @@ -127,7 +140,10 @@ jobs: workflows: build-and-test: jobs: - - install-dependencies + - update-yarn + - install-dependencies: + requires: + - update-yarn - lint: requires: - install-dependencies diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 0000000000..3186f3f079 --- /dev/null +++ b/.yarnrc.yml @@ -0,0 +1 @@ +nodeLinker: node-modules diff --git a/package.json b/package.json index 6406b63fee..2dccce2235 100644 --- a/package.json +++ b/package.json @@ -162,5 +162,6 @@ } ] ] - } + }, + "packageManager": "yarn@4.5.3" }