Skip to content

Commit 1b00ae5

Browse files
committed
Use Yarn 4.x.
1 parent 43af4cb commit 1b00ae5

File tree

9 files changed

+21978
-15747
lines changed

9 files changed

+21978
-15747
lines changed

.github/workflows/fastlane_android.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ jobs:
5757
- uses: actions/checkout@v3
5858
with:
5959
ref: ${{ inputs.tag }}
60+
- name: Enable Corepack
61+
run: corepack enable
6062
- uses: actions/setup-node@v4
6163
with:
6264
node-version: '20.x'
@@ -154,10 +156,8 @@ jobs:
154156
- name: Install RubyGems
155157
working-directory: android/
156158
run: bundle install
157-
- name: Install latest yarn binary
158-
run: yarn set version latest --yarn-path
159159
- name: yarn install
160-
run: yarn install --no-progress --network-timeout 100000 --network-concurrency 1
160+
run: yarn install
161161
- name: Run Fastlane
162162
working-directory: android/
163163
run: bundle exec fastlane ${{env.FASTLANE_CMD}}

.github/workflows/fastlane_ios.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
- uses: actions/checkout@v3
3636
with:
3737
ref: ${{ inputs.tag }}
38+
- name: Enable Corepack
39+
run: corepack enable
3840
- uses: actions/setup-node@v4
3941
with:
4042
node-version: '20.x'
@@ -46,7 +48,7 @@ jobs:
4648
- name: Install dependencies to compile node-canvas
4749
run: brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman imagemagick
4850
- name: Install dependencies
49-
run: yarn install --no-progress --network-timeout 100000 --network-concurrency 1
51+
run: yarn install
5052
- name: Cache Pods
5153
uses: actions/cache@v4
5254
id: cache-pods

.github/workflows/lint.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v4
9+
- name: Enable Corepack
10+
run: corepack enable
911
- uses: actions/setup-node@v4
1012
with:
1113
node-version: '20.x'
1214
cache: 'yarn'
1315
- name: Install latest yarn binary
1416
run: yarn set version latest --yarn-path
15-
- name: yarn install
16-
run: yarn install --no-progress --network-timeout 100000 --network-concurrency 1
17+
- name: Install dependencies
18+
run: yarn install
1719
- name: Run ESLint
1820
run: yarn lint --quiet
1921
- run: yarn i18n-lint

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v4
9+
- name: Enable Corepack
10+
run: corepack enable
911
- uses: actions/setup-node@v4
1012
with:
1113
node-version: '20.x'
1214
cache: 'yarn'
13-
- name: Install latest yarn binary
14-
run: yarn set version latest --yarn-path
1515
- name: yarn install
16-
run: yarn install --no-progress --network-timeout 100000 --network-concurrency 1
16+
run: yarn install
1717
- run: yarn test

.github/workflows/test_android.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
android: false
2626
swap-storage: false
2727

28+
- name: Enable Corepack
29+
run: corepack enable
30+
2831
- uses: actions/setup-node@v4
2932
with:
3033
node-version: '20.x'
@@ -44,7 +47,7 @@ jobs:
4447
encodedString: ${{ secrets.SENTRY_PROPERTIES_BASE64 }}
4548

4649
- name: Install dependencies (yarn)
47-
run: yarn install --no-progress --network-timeout 100000 --network-concurrency 1
50+
run: yarn install
4851

4952
- run: cp google-services.json.dist android/app/google-services.json
5053

@@ -134,6 +137,9 @@ jobs:
134137
name: app-official-release-androidTest.apk
135138
path: coopcycle-app-repo/android/app/build/outputs/apk/androidTest/official/release
136139

140+
- name: Enable Corepack
141+
run: corepack enable
142+
137143
- uses: actions/setup-node@v4
138144
with:
139145
node-version: '20.x'
@@ -147,7 +153,7 @@ jobs:
147153
cache: 'gradle'
148154

149155
- name: Install dependencies (yarn)
150-
run: yarn install --no-progress --network-timeout 100000 --network-concurrency 1
156+
run: yarn install
151157

152158
- name: Enable clear text traffic in release builds
153159
run: |

.github/workflows/test_ios.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v3
1515

16+
- name: Enable Corepack
17+
run: corepack enable
18+
1619
- uses: actions/setup-node@v4
1720
with:
1821
node-version: '20.x'
@@ -31,7 +34,7 @@ jobs:
3134
run: brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman imagemagick
3235

3336
- name: Install dependencies (yarn)
34-
run: yarn install --no-progress --network-timeout 200000 --network-concurrency 1
37+
run: yarn install
3538

3639
- name: Configure Firebase
3740
run: |
@@ -123,6 +126,9 @@ jobs:
123126
name: CoopCycle.app
124127
path: coopcycle-app-repo/ios/build/Build/Products/Release-iphonesimulator/CoopCycle.app
125128

129+
- name: Enable Corepack
130+
run: corepack enable
131+
126132
- uses: actions/setup-node@v4
127133
with:
128134
node-version: '20.x'
@@ -139,7 +145,7 @@ jobs:
139145
run: brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman imagemagick
140146

141147
- name: Install dependencies (yarn)
142-
run: yarn install --no-progress --network-timeout 100000 --network-concurrency 1
148+
run: yarn install
143149

144150
- name: Install applesimutils
145151
run: |

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,5 +184,5 @@
184184
"engines": {
185185
"node": ">=20"
186186
},
187-
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
187+
"packageManager": "yarn@4.11.0"
188188
}

0 commit comments

Comments
 (0)