Skip to content

Commit 07e8796

Browse files
committed
chore: update yarn
1 parent 9b37692 commit 07e8796

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

.circleci/config.yml

+20-4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ commands:
1313
at: ~/react-native-paper
1414

1515
jobs:
16+
update-yarn:
17+
executor: default
18+
steps:
19+
- checkout
20+
- attach_project
21+
- run:
22+
name: "Enable Corepack and upgrade Yarn"
23+
command: |
24+
sudo corepack enable
25+
yarn set version berry
26+
yarn
1627
install-dependencies:
1728
executor: default
1829
steps:
@@ -29,9 +40,11 @@ jobs:
2940
- run:
3041
name: Install dependencies
3142
command: |
32-
yarn install --cwd example --frozen-lockfile
33-
yarn install --cwd docs --frozen-lockfile
34-
yarn install --frozen-lockfile
43+
sudo corepack enable
44+
yarn set version berry
45+
yarn --cwd example --frozen-lockfile
46+
yarn --cwd docs --frozen-lockfile
47+
yarn --frozen-lockfile
3548
- save_cache:
3649
key: dependencies-{{ checksum "package.json" }}
3750
paths:
@@ -127,7 +140,10 @@ jobs:
127140
workflows:
128141
build-and-test:
129142
jobs:
130-
- install-dependencies
143+
- update-yarn
144+
- install-dependencies:
145+
requires:
146+
- update-yarn
131147
- lint:
132148
requires:
133149
- install-dependencies

.yarnrc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,6 @@
162162
}
163163
]
164164
]
165-
}
165+
},
166+
"packageManager": "[email protected]"
166167
}

0 commit comments

Comments
 (0)