Skip to content

Commit fc281aa

Browse files
committed
Update yarn v1 to yarn v3
1 parent 7e9d0bc commit fc281aa

28 files changed

Lines changed: 44763 additions & 32242 deletions

.depcheckrc.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ ignores:
4040
- 'eslint-plugin-react-native'
4141
- 'execa'
4242
- 'fbjs-scripts'
43-
- 'improved-yarn-audit'
4443
- 'jetifier'
4544
- 'metro-react-native-babel-preset'
4645
- 'octonode'

.github/scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"ts-node": "^10.5.0",
2626
"typescript": "~5.4.5"
2727
},
28-
"packageManager": "yarn@1.22.22",
28+
"packageManager": "yarn@3.8.7",
2929
"lavamoat": {
3030
"allowScripts": {
3131
"@lavamoat/preinstall-always-fail": false,

.github/workflows/add-release-label.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
steps:
1515
- name: Checkout repository
1616
uses: actions/checkout@v3
17+
- name: Enable Corepack
18+
run: corepack enable
1719
with:
1820
fetch-depth: 0 # This is needed to checkout all branches
1921

.github/workflows/bitrise-e2e-gate.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
steps:
2323
- name: Checkout code
2424
uses: actions/checkout@v3
25-
25+
- name: Enable Corepack
26+
run: corepack enable
2627
- name: Set up Node.js
2728
uses: actions/setup-node@v3
2829
with:

.github/workflows/check-template-and-add-labels.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
steps:
1313
- name: Checkout repository
1414
uses: actions/checkout@v3
15+
- name: Enable Corepack
16+
run: corepack enable
1517
with:
1618
fetch-depth: 1 # This retrieves only the latest commit.
1719

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
runs-on: macos-latest
1212
steps:
1313
- uses: actions/checkout@v3
14+
- name: Enable Corepack
15+
run: corepack enable
1416
- uses: actions/setup-node@v3
1517
with:
1618
node-version-file: '.nvmrc'
@@ -34,6 +36,8 @@ jobs:
3436
runs-on: ubuntu-latest
3537
steps:
3638
- uses: actions/checkout@v3
39+
- name: Enable Corepack
40+
run: corepack enable
3741
- uses: actions/setup-node@v3
3842
with:
3943
node-version-file: '.nvmrc'
@@ -52,6 +56,8 @@ jobs:
5256
runs-on: ubuntu-latest
5357
steps:
5458
- uses: actions/checkout@v3
59+
- name: Enable Corepack
60+
run: corepack enable
5561
- uses: actions/setup-node@v3
5662
with:
5763
node-version-file: '.nvmrc'
@@ -71,6 +77,8 @@ jobs:
7177
- test:tgz-check
7278
steps:
7379
- uses: actions/checkout@v3
80+
- name: Enable Corepack
81+
run: corepack enable
7482
- uses: actions/setup-node@v3
7583
with:
7684
node-version-file: '.nvmrc'
@@ -93,6 +101,8 @@ jobs:
93101
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
94102
steps:
95103
- uses: actions/checkout@v3
104+
- name: Enable Corepack
105+
run: corepack enable
96106
- uses: actions/setup-node@v3
97107
with:
98108
node-version-file: '.nvmrc'
@@ -126,6 +136,8 @@ jobs:
126136
needs: unit-tests
127137
steps:
128138
- uses: actions/checkout@v3
139+
- name: Enable Corepack
140+
run: corepack enable
129141
- uses: actions/setup-node@v3
130142
with:
131143
node-version-file: '.nvmrc'
@@ -159,6 +171,8 @@ jobs:
159171
runs-on: ubuntu-latest
160172
steps:
161173
- uses: actions/checkout@v3
174+
- name: Enable Corepack
175+
run: corepack enable
162176
- uses: actions/setup-node@v3
163177
with:
164178
node-version-file: '.nvmrc'
@@ -202,6 +216,8 @@ jobs:
202216
needs: merge-unit-tests
203217
steps:
204218
- uses: actions/checkout@v3
219+
- name: Enable Corepack
220+
run: corepack enable
205221
with:
206222
fetch-depth: 0 # SonarCloud needs a full checkout to perform necessary analysis
207223
- uses: actions/setup-node@v3
@@ -243,6 +259,8 @@ jobs:
243259
steps:
244260
- name: Checkout code
245261
uses: actions/checkout@v3
262+
- name: Enable Corepack
263+
run: corepack enable
246264
- name: SonarCloud Quality Gate Status
247265
id: sonar-status
248266
env:

.github/workflows/close-bug-report.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
steps:
1515
- name: Checkout repository
1616
uses: actions/checkout@v3
17+
- name: Enable Corepack
18+
run: corepack enable
1719
with:
1820
fetch-depth: 1 # This retrieves only the latest commit.
1921

.github/workflows/create-cherry-pick-pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
pull-requests: write
2121
steps:
2222
- uses: actions/checkout@v3
23+
- name: Enable Corepack
24+
run: corepack enable
2325
with:
2426
fetch-depth: 0
2527
ref: ${{ vars.branch_name }}

.github/workflows/create-release-draft.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
steps:
1616
- name: Checkout code
1717
uses: actions/checkout@v3
18+
- name: Enable Corepack
19+
run: corepack enable
1820
with:
1921
ref: ${{ github.ref }} # Explicitly specifies the tag ref
2022

.github/workflows/create-release-pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
pull-requests: write
2727
steps:
2828
- uses: actions/checkout@v3
29+
- name: Enable Corepack
30+
run: corepack enable
2931
with:
3032
# This is to guarantee that the most recent tag is fetched.
3133
# This can be configured to a more reasonable value by consumers.

0 commit comments

Comments
 (0)