Skip to content

Commit 32478ed

Browse files
authored
Merge pull request #364 from aryaemami59/upgrade-to-yarn-4
Upgrade to Yarn 4
2 parents 98bffb1 + 19430a4 commit 32478ed

File tree

7 files changed

+1746
-1645
lines changed

7 files changed

+1746
-1645
lines changed

.codesandbox/ci.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sandboxes": ["vanilla", "vanilla-ts"],
3-
"node": "14",
3+
"node": "18",
44
"buildCommand": "build",
55
"packages": ["."]
66
}

.github/workflows/test.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
node: ['16.x']
15+
node: ['20.x']
1616

1717
steps:
1818
- name: Checkout repo
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v4
2020

2121
- name: Use Node ${{ matrix.node }}
22-
uses: actions/setup-node@v2
22+
uses: actions/setup-node@v4
2323
with:
2424
node-version: ${{ matrix.node }}
2525
cache: 'yarn'
@@ -43,7 +43,7 @@ jobs:
4343
- name: Pack
4444
run: yarn pack
4545

46-
- uses: actions/upload-artifact@v2
46+
- uses: actions/upload-artifact@v4
4747
with:
4848
name: package
4949
path: ./package.tgz
@@ -56,15 +56,15 @@ jobs:
5656
strategy:
5757
fail-fast: false
5858
matrix:
59-
node: ['16.x']
59+
node: ['20.x']
6060
ts: ['4.7', '4.8', '4.9', '5.0', '5.1', '5.2']
6161

6262
steps:
6363
- name: Checkout repo
64-
uses: actions/checkout@v2
64+
uses: actions/checkout@v4
6565

6666
- name: Use node ${{ matrix.node }}
67-
uses: actions/setup-node@v2
67+
uses: actions/setup-node@v4
6868
with:
6969
node-version: ${{ matrix.node }}
7070
cache: 'yarn'
@@ -88,14 +88,14 @@ jobs:
8888
strategy:
8989
fail-fast: false
9090
matrix:
91-
node: ['16.x']
91+
node: ['20.x']
9292
example: ['cra4', 'cra5', 'next', 'vite', 'node-standard', 'node-esm']
9393
steps:
9494
- name: Checkout repo
95-
uses: actions/checkout@v2
95+
uses: actions/checkout@v4
9696

9797
- name: Use node ${{ matrix.node }}
98-
uses: actions/setup-node@v2
98+
uses: actions/setup-node@v4
9999
with:
100100
node-version: ${{ matrix.node }}
101101
cache: 'yarn'
@@ -108,9 +108,11 @@ jobs:
108108

109109
- name: Install deps
110110
working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
111+
env:
112+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
111113
run: yarn install
112114

113-
- uses: actions/download-artifact@v2
115+
- uses: actions/download-artifact@v4
114116
with:
115117
name: package
116118
path: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
@@ -129,6 +131,8 @@ jobs:
129131

130132
- name: Build example
131133
working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
134+
env:
135+
NODE_OPTIONS: --openssl-legacy-provider
132136
run: yarn build
133137

134138
- name: Run test step
@@ -143,12 +147,12 @@ jobs:
143147
strategy:
144148
fail-fast: false
145149
matrix:
146-
node: ['16.x']
150+
node: ['20.x']
147151
steps:
148152
- name: Checkout repo
149-
uses: actions/checkout@v3
153+
uses: actions/checkout@v4
150154

151-
- uses: actions/download-artifact@v3
155+
- uses: actions/download-artifact@v4
152156
with:
153157
name: package
154158
path: .

.yarn/releases/yarn-3.2.4.cjs

Lines changed: 0 additions & 801 deletions
This file was deleted.

.yarn/releases/yarn-4.1.0.cjs

Lines changed: 893 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 5 additions & 1 deletion
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.2.4.cjs
7+
yarnPath: .yarn/releases/yarn-4.1.0.cjs

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,6 @@
5858
"tsup": "7.0.0",
5959
"typescript": "^5.0",
6060
"vitest": "^0.32.0"
61-
}
61+
},
62+
"packageManager": "yarn@4.1.0"
6263
}

0 commit comments

Comments
 (0)