Skip to content

Commit 03ed4f5

Browse files
authored
Bump node.js requirement to 20. (#4293)
According to https://github.com/matrix-org/matrix-js-sdk?tab=readme-ov-file#supported-platforms, we *only* supprt the latest LTS release (which is currenly https://github.com/nodejs/release#release-schedule), so this should be safe.
1 parent 6e641a2 commit 03ed4f5

File tree

6 files changed

+10
-2
lines changed

6 files changed

+10
-2
lines changed

.github/workflows/release-make.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ jobs:
116116
- uses: actions/setup-node@v4
117117
with:
118118
cache: "yarn"
119+
node-version-file: package.json
119120

120121
- name: Install dependencies
121122
run: "yarn install --frozen-lockfile"

.github/workflows/release-npm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
with:
2626
cache: "yarn"
2727
registry-url: "https://registry.npmjs.org"
28+
node-version-file: package.json
2829

2930
- name: 🔨 Install dependencies
3031
run: "yarn install --frozen-lockfile"

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
uses: actions/setup-node@v4
4444
with:
4545
cache: "yarn"
46+
node-version-file: package.json
4647

4748
- name: 🔨 Install dependencies
4849
run: "yarn install --frozen-lockfile"

.github/workflows/static_analysis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- uses: actions/setup-node@v4
1919
with:
2020
cache: "yarn"
21+
node-version-file: package.json
2122

2223
- name: Install Deps
2324
run: "yarn install"
@@ -44,6 +45,7 @@ jobs:
4445
- uses: actions/setup-node@v4
4546
with:
4647
cache: "yarn"
48+
node-version-file: package.json
4749

4850
- name: Install Deps
4951
run: "yarn install"
@@ -60,6 +62,7 @@ jobs:
6062
- uses: actions/setup-node@v4
6163
with:
6264
cache: "yarn"
65+
node-version-file: package.json
6366

6467
- name: Install Deps
6568
run: "yarn install --frozen-lockfile"
@@ -76,6 +79,7 @@ jobs:
7679
- uses: actions/setup-node@v4
7780
with:
7881
cache: "yarn"
82+
node-version-file: package.json
7983

8084
- name: Install Deps
8185
run: "yarn install"
@@ -100,6 +104,7 @@ jobs:
100104
- uses: actions/setup-node@v4
101105
with:
102106
cache: "yarn"
107+
node-version-file: package.json
103108

104109
- name: Install Deps
105110
run: "yarn install --frozen-lockfile"

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
matrix:
2020
specs: [integ, unit]
21-
node: [18, "lts/*", 21]
21+
node: ["lts/*", 21, 22]
2222
steps:
2323
- name: Checkout code
2424
uses: actions/checkout@v4

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "33.1.0",
44
"description": "Matrix Client-Server SDK for Javascript",
55
"engines": {
6-
"node": ">=18.0.0"
6+
"node": ">=20.0.0"
77
},
88
"scripts": {
99
"prepack": "yarn build",

0 commit comments

Comments
 (0)