Skip to content

Commit 83a30b5

Browse files
committed
chore: upgrade node
1 parent 6092a5c commit 83a30b5

File tree

6 files changed

+45
-63
lines changed

6 files changed

+45
-63
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,37 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest]
17-
node-version: [18]
17+
node-version: [22]
1818

1919
steps:
20-
- uses: actions/checkout@v4
21-
22-
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v3
24-
with:
25-
node-version: ${{ matrix.node-version }}
26-
27-
- name: Get yarn cache directory path
28-
id: yarn-cache-dir-path
29-
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
30-
31-
- uses: actions/cache@v3
32-
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
33-
with:
34-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
35-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
36-
restore-keys: |
37-
${{ runner.os }}-yarn-
38-
39-
- name: yarn install, build
40-
run: |
41-
yarn install
42-
yarn build
43-
44-
- name: test, report coverage
45-
run: |
46-
yarn verify-translation
47-
yarn test
20+
- uses: actions/checkout@v4
21+
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
27+
- name: Get yarn cache directory path
28+
id: yarn-cache-dir-path
29+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
30+
31+
- uses: actions/cache@v3
32+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
33+
with:
34+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
35+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
36+
restore-keys: |
37+
${{ runner.os }}-yarn-
38+
39+
- name: yarn install, build
40+
run: |
41+
yarn install
42+
yarn build
43+
44+
- name: test, report coverage
45+
run: |
46+
yarn verify-translation
47+
yarn test
4848
4949
# - uses: codecov/codecov-action@v1
5050
# if: success() && matrix.os == 'ubuntu-latest'

.github/workflows/release-builtin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest]
14-
node-version: [18]
14+
node-version: [22]
1515

1616
steps:
1717
- uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest]
14-
node-version: [18]
14+
node-version: [22]
1515

1616
steps:
1717
- uses: actions/checkout@v4

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
22

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"@types/jest": "^29.5.3",
6666
"@types/loadable__component": "^5.13.0",
6767
"@types/lodash-es": "^4.17.8",
68-
"@types/node": "^18.0.0",
68+
"@types/node": "^22",
6969
"@types/path-browserify": "^1.0.0",
7070
"@types/react": "^18",
7171
"@types/react-collapse": "^5.0.0",
@@ -180,7 +180,7 @@
180180
"*.{js,jsx,ts,tsx}": "eslint --ext .mjs,.js,.jsx,.ts,.tsx"
181181
},
182182
"engines": {
183-
"node": ">=18.0.0"
183+
"node": ">=22.0.0"
184184
},
185185
"snyk": true
186186
}

yarn.lock

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3531,13 +3531,20 @@
35313531
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.5.1.tgz#178d58ee7e4834152b0e8b4d30cbfab578b9bb30"
35323532
integrity sha512-4tT2UrL5LBqDwoed9wZ6N3umC4Yhz3W3FloMmiiG4JwmUJWpie0c7lcnUNd4gtMKuDEO4wRVS8B6Xa0uMRsMKg==
35333533

3534-
"@types/node@^18.0.0", "@types/node@^18.16.3":
3534+
"@types/node@^18.16.3":
35353535
version "18.19.65"
35363536
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.65.tgz#e6aaac55fab80c6a3ff61ab27bc25105a7bea479"
35373537
integrity sha512-Ay5BZuO1UkTmVHzZJNvZKw/E+iB3GQABb6kijEz89w2JrfhNA+M/ebp18pfz9Gqe9ywhMC8AA8yC01lZq48J+Q==
35383538
dependencies:
35393539
undici-types "~5.26.4"
35403540

3541+
"@types/node@^22":
3542+
version "22.9.4"
3543+
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.9.4.tgz#31eefcdbe163a51f53cbfbb3e121b8ae9b16fdb2"
3544+
integrity sha512-d9RWfoR7JC/87vj7n+PVTzGg9hDyuFjir3RxUHbjFSKNd9mpxbxwMEyaCim/ddCmy4IuW7HjTzF3g9p3EtWEOg==
3545+
dependencies:
3546+
undici-types "~6.19.8"
3547+
35413548
"@types/normalize-package-data@^2.4.0":
35423549
version "2.4.4"
35433550
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz#56e2cc26c397c038fab0e3a917a12d5c5909e901"
@@ -13022,16 +13029,7 @@ string-natural-compare@^3.0.1:
1302213029
resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4"
1302313030
integrity sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==
1302413031

13025-
"string-width-cjs@npm:string-width@^4.2.0":
13026-
version "4.2.3"
13027-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
13028-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
13029-
dependencies:
13030-
emoji-regex "^8.0.0"
13031-
is-fullwidth-code-point "^3.0.0"
13032-
strip-ansi "^6.0.1"
13033-
13034-
"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
13032+
"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
1303513033
version "4.2.3"
1303613034
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
1303713035
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -13144,14 +13142,7 @@ stringify-object@^5.0.0:
1314413142
is-obj "^3.0.0"
1314513143
is-regexp "^3.1.0"
1314613144

13147-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
13148-
version "6.0.1"
13149-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
13150-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
13151-
dependencies:
13152-
ansi-regex "^5.0.1"
13153-
13154-
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
13145+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
1315513146
version "6.0.1"
1315613147
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
1315713148
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -14602,16 +14593,7 @@ workbox-window@6.6.1:
1460214593
"@types/trusted-types" "^2.0.2"
1460314594
workbox-core "6.6.1"
1460414595

14605-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
14606-
version "7.0.0"
14607-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
14608-
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
14609-
dependencies:
14610-
ansi-styles "^4.0.0"
14611-
string-width "^4.1.0"
14612-
strip-ansi "^6.0.0"
14613-
14614-
wrap-ansi@^7.0.0:
14596+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
1461514597
version "7.0.0"
1461614598
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
1461714599
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==

0 commit comments

Comments
 (0)