Skip to content

Commit a1d344d

Browse files
authored
Upgrade to Yarn 4 (#4680)
1 parent 28bc434 commit a1d344d

File tree

13 files changed

+7915
-7702
lines changed

13 files changed

+7915
-7702
lines changed

.codesandbox/ci.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"sandboxes": ["vanilla", "vanilla-ts"],
3-
"node": "16"
3+
"node": "18"
44
}

.github/workflows/publish.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
id-token: write
1212
contents: read
1313
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
1616
with:
17-
node-version: '18.x'
17+
node-version: '20.x'
1818
registry-url: 'https://registry.npmjs.org'
1919
cache: 'yarn'
2020
- run: yarn install --frozen-lockfile

.github/workflows/size.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
with:
1313
fetch-depth: 1
1414
- uses: preactjs/compressed-size-action@v2

.github/workflows/test.yaml

+26-22
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
outputs:
99
src: ${{ steps.filter.outputs.src }}
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: dorny/paths-filter@v2
11+
- uses: actions/checkout@v4
12+
- uses: dorny/paths-filter@v3
1313
id: filter
1414
with:
1515
filters: |
@@ -29,14 +29,14 @@ jobs:
2929
runs-on: ubuntu-latest
3030
strategy:
3131
matrix:
32-
node: ['18.x']
32+
node: ['20.x']
3333

3434
steps:
3535
- name: Checkout repo
36-
uses: actions/checkout@v2
36+
uses: actions/checkout@v4
3737

3838
- name: Use node ${{ matrix.node }}
39-
uses: actions/setup-node@v2
39+
uses: actions/setup-node@v4
4040
with:
4141
node-version: ${{ matrix.node }}
4242
cache: 'yarn'
@@ -53,7 +53,7 @@ jobs:
5353
- name: Pack
5454
run: yarn pack
5555

56-
- uses: actions/upload-artifact@v2
56+
- uses: actions/upload-artifact@v4
5757
with:
5858
name: package
5959
path: ./package.tgz
@@ -65,21 +65,21 @@ jobs:
6565
strategy:
6666
fail-fast: false
6767
matrix:
68-
node: ['18.x']
68+
node: ['20.x']
6969
steps:
7070
- name: Checkout repo
71-
uses: actions/checkout@v2
71+
uses: actions/checkout@v4
7272

7373
- name: Use node ${{ matrix.node }}
74-
uses: actions/setup-node@v2
74+
uses: actions/setup-node@v4
7575
with:
7676
node-version: ${{ matrix.node }}
7777
cache: 'yarn'
7878

7979
- name: Install deps
8080
run: yarn install
8181

82-
- uses: actions/download-artifact@v2
82+
- uses: actions/download-artifact@v4
8383
with:
8484
name: package
8585
path: .
@@ -102,14 +102,14 @@ jobs:
102102
strategy:
103103
fail-fast: false
104104
matrix:
105-
node: ['18.x']
105+
node: ['20.x']
106106
ts: ['4.7', '4.8', '4.9', '5.0', '5.1', '5.2', '5.3', '5.4']
107107
steps:
108108
- name: Checkout repo
109-
uses: actions/checkout@v2
109+
uses: actions/checkout@v4
110110

111111
- name: Use node ${{ matrix.node }}
112-
uses: actions/setup-node@v2
112+
uses: actions/setup-node@v4
113113
with:
114114
node-version: ${{ matrix.node }}
115115
cache: 'yarn'
@@ -120,7 +120,7 @@ jobs:
120120
- name: Install TypeScript ${{ matrix.ts }}
121121
run: yarn add typescript@${{ matrix.ts }}
122122

123-
- uses: actions/download-artifact@v2
123+
- uses: actions/download-artifact@v4
124124
with:
125125
name: package
126126
path: .
@@ -143,12 +143,12 @@ jobs:
143143
strategy:
144144
fail-fast: false
145145
matrix:
146-
node: ['18.x']
146+
node: ['20.x']
147147
steps:
148148
- name: Checkout repo
149-
uses: actions/checkout@v3
149+
uses: actions/checkout@v4
150150

151-
- uses: actions/download-artifact@v3
151+
- uses: actions/download-artifact@v4
152152
with:
153153
name: package
154154
path: .
@@ -165,14 +165,14 @@ jobs:
165165
strategy:
166166
fail-fast: false
167167
matrix:
168-
node: ['18.x']
168+
node: ['20.x']
169169
example: ['cra4', 'cra5', 'next', 'vite', 'node-standard', 'node-esm']
170170
steps:
171171
- name: Checkout repo
172-
uses: actions/checkout@v2
172+
uses: actions/checkout@v4
173173

174174
- name: Use node ${{ matrix.node }}
175-
uses: actions/setup-node@v2
175+
uses: actions/setup-node@v4
176176
with:
177177
node-version: ${{ matrix.node }}
178178
cache: 'yarn'
@@ -185,9 +185,11 @@ jobs:
185185

186186
- name: Install deps
187187
working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
188+
env:
189+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
188190
run: yarn install
189191

190-
- uses: actions/download-artifact@v2
192+
- uses: actions/download-artifact@v4
191193
with:
192194
name: package
193195
path: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
@@ -206,7 +208,9 @@ jobs:
206208

207209
- name: Build example
208210
working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
209-
run: NODE_OPTIONS=--openssl-legacy-provider yarn build
211+
env:
212+
NODE_OPTIONS: --openssl-legacy-provider
213+
run: yarn build
210214

211215
- name: Run test step
212216
working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}

.yarn/releases/yarn-3.4.1.cjs

-873
This file was deleted.

.yarn/releases/yarn-4.1.0.cjs

+893
Large diffs are not rendered by default.

.yarnrc.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
compressionLevel: mixed
2+
3+
enableGlobalCache: false
4+
15
nodeLinker: node-modules
26

3-
yarnPath: .yarn/releases/yarn-3.4.1.cjs
7+
yarnPath: .yarn/releases/yarn-4.1.0.cjs

0 commit comments

Comments
 (0)