Skip to content

Commit

Permalink
chore: update yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
BogiKay committed Dec 8, 2024
1 parent 9b37692 commit 07e8796
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
24 changes: 20 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -127,7 +140,10 @@ jobs:
workflows:
build-and-test:
jobs:
- install-dependencies
- update-yarn
- install-dependencies:
requires:
- update-yarn
- lint:
requires:
- install-dependencies
Expand Down
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,6 @@
}
]
]
}
},
"packageManager": "yarn@4.5.3"
}

0 comments on commit 07e8796

Please sign in to comment.