Skip to content

Commit 05a5863

Browse files
authored
Bump Node to v22 (#325)
* Bump Node to 22 * Bump @types/node * Run CI with Node v22 * Use gh concurrency in CI instead of cancel action
1 parent aa91f29 commit 05a5863

File tree

6 files changed

+49
-20
lines changed

6 files changed

+49
-20
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ on:
66
- master
77
- master-next
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
env:
10-
node-version: '18.x'
14+
node-version: '22.x'
1115

1216
jobs:
1317
precheck:
@@ -17,11 +21,6 @@ jobs:
1721
affected-typescript-resolver-files: ${{ steps.affected.outputs.typescript-resolver-files }}
1822
affected-typescript-resolver-files-e2e: ${{ steps.affected.outputs.typescript-resolver-files-e2e }}
1923
steps:
20-
- name: Cancel Previous Runs
21-
uses: styfle/[email protected]
22-
with:
23-
access_token: ${{ github.token }}
24-
2524
- name: Check out repository
2625
uses: actions/checkout@v4
2726
with:
@@ -48,7 +47,7 @@ jobs:
4847
strategy:
4948
matrix:
5049
os: [ubuntu-22.04, windows-latest]
51-
node-version: [18.x, 20.x]
50+
node-version: [18.x, 20.x, 22.x]
5251
runs-on: ${{ matrix.os }}
5352
needs: precheck
5453
if: ${{ needs.precheck.outputs.affected-typescript-resolver-files == 'true' }}
@@ -79,7 +78,7 @@ jobs:
7978
strategy:
8079
matrix:
8180
os: [ubuntu-22.04, windows-latest]
82-
node-version: [18.x, 20.x]
81+
node-version: [18.x, 20.x, 22.x]
8382
runs-on: ${{ matrix.os }}
8483
defaults:
8584
run:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
env:
99
npm-token: ${{ secrets.NPM_TOKEN }}
1010
github-token: ${{ secrets.GITHUB_TOKEN }}
11-
node-version: '18.x'
11+
node-version: '22.x'
1212

1313
jobs:
1414
release:

.github/workflows/snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
env:
88
npm-token: ${{ secrets.NPM_TOKEN }}
99
github-token: ${{ secrets.GITHUB_TOKEN }}
10-
node-version: '18.x'
10+
node-version: '22.x'
1111
release-tag: pr${{ github.event.issue.number }}-run${{ github.run_number }}-${{ github.run_attempt }}
1212

1313
jobs:

.nvmrc

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@swc/helpers": "0.5.12",
3434
"@types/jest": "29.4.0",
3535
"@types/micromatch": "4.0.6",
36-
"@types/node": "18.19.24",
36+
"@types/node": "22.0.3",
3737
"@typescript-eslint/eslint-plugin": "7.18.0",
3838
"@typescript-eslint/parser": "7.18.0",
3939
"eslint": "8.57.0",

yarn.lock

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3064,12 +3064,12 @@
30643064
dependencies:
30653065
undici-types "~5.26.4"
30663066

3067-
"@types/node@18.19.24":
3068-
version "18.19.24"
3069-
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.24.tgz#707d8a4907e55901466e60e8f7a62bc6197ace95"
3070-
integrity sha512-eghAz3gnbQbvnHqB+mgB2ZR3aH6RhdEmHGS48BnV75KceQPHqabkxKI0BbUSsqhqy2Ddhc2xD/VAR9ySZd57Lw==
3067+
"@types/node@22.0.3":
3068+
version "22.0.3"
3069+
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.0.3.tgz#955d2eede5b83afdf3400a9769154cbd49e478f7"
3070+
integrity sha512-/e0NZtK2gs6Vk2DoyrXSZZ4AlamqTkx0CcKx1Aq8/P4ITlRgU9OtVf5fl+LXkWWJce1M89pkSlH6lJJEnK7bQA==
30713071
dependencies:
3072-
undici-types "~5.26.4"
3072+
undici-types "~6.11.1"
30733073

30743074
"@types/node@^12.7.1":
30753075
version "12.20.55"
@@ -7646,7 +7646,16 @@ string-length@^4.0.1:
76467646
char-regex "^1.0.2"
76477647
strip-ansi "^6.0.0"
76487648

7649-
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
7649+
"string-width-cjs@npm:string-width@^4.2.0":
7650+
version "4.2.3"
7651+
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
7652+
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
7653+
dependencies:
7654+
emoji-regex "^8.0.0"
7655+
is-fullwidth-code-point "^3.0.0"
7656+
strip-ansi "^6.0.1"
7657+
7658+
string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
76507659
version "4.2.3"
76517660
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
76527661
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -7699,7 +7708,14 @@ string_decoder@^1.1.1:
76997708
dependencies:
77007709
safe-buffer "~5.2.0"
77017710

7702-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
7711+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
7712+
version "6.0.1"
7713+
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
7714+
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
7715+
dependencies:
7716+
ansi-regex "^5.0.1"
7717+
7718+
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
77037719
version "6.0.1"
77047720
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
77057721
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -8084,6 +8100,11 @@ undici-types@~5.26.4:
80848100
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
80858101
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
80868102

8103+
undici-types@~6.11.1:
8104+
version "6.11.1"
8105+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.11.1.tgz#432ea6e8efd54a48569705a699e62d8f4981b197"
8106+
integrity sha512-mIDEX2ek50x0OlRgxryxsenE5XaQD4on5U2inY7RApK3SOJpofyw7uW2AyfMKkhAxXIceo2DeWGVGwyvng1GNQ==
8107+
80878108
unicode-canonical-property-names-ecmascript@^2.0.0:
80888109
version "2.0.0"
80898110
resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc"
@@ -8339,7 +8360,7 @@ which@^2.0.1:
83398360
dependencies:
83408361
isexe "^2.0.0"
83418362

8342-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
8363+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
83438364
version "7.0.0"
83448365
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
83458366
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -8357,6 +8378,15 @@ wrap-ansi@^6.0.1, wrap-ansi@^6.2.0:
83578378
string-width "^4.1.0"
83588379
strip-ansi "^6.0.0"
83598380

8381+
wrap-ansi@^7.0.0:
8382+
version "7.0.0"
8383+
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
8384+
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
8385+
dependencies:
8386+
ansi-styles "^4.0.0"
8387+
string-width "^4.1.0"
8388+
strip-ansi "^6.0.0"
8389+
83608390
wrap-ansi@^8.1.0:
83618391
version "8.1.0"
83628392
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)