Skip to content

Commit 9623841

Browse files
authored
switch workflows and Netlify setup to use Node 22 (#4811)
1 parent 5f77cb7 commit 9623841

File tree

4 files changed

+6
-24
lines changed

4 files changed

+6
-24
lines changed

.github/workflows/pre-merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Node.js
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: "20"
21+
node-version: "22"
2222
cache: yarn
2323

2424
- name: Check lock for duplications
@@ -45,7 +45,7 @@ jobs:
4545
- name: Set up Node.js
4646
uses: actions/setup-node@v4
4747
with:
48-
node-version: "20"
48+
node-version: "22"
4949
cache: yarn
5050

5151
- name: Install dependencies

netlify.toml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,12 @@
44
command = "yarn && cd website && yarn build"
55

66
[context.production.environment]
7-
NODE_VERSION = "20"
8-
NODE_OPTIONS = "--max_old_space_size=4096"
7+
NODE_VERSION = "22"
98

109
[context.deploy-preview.environment]
11-
NODE_VERSION = "20"
12-
NODE_OPTIONS = "--max_old_space_size=4096"
10+
NODE_VERSION = "22"
1311
PREVIEW_DEPLOY = "true"
1412

15-
[[plugins]]
16-
package = "netlify-plugin-cache"
17-
[plugins.inputs]
18-
paths = [
19-
"website/node_modules/.cache",
20-
]
21-
2213
[[headers]]
2314
for = "/movies.json"
2415
[headers.values]

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"type": "module",
55
"engines": {
6-
"node": ">=20"
6+
"node": ">=22"
77
},
88
"workspaces": [
99
"website",
@@ -36,10 +36,9 @@
3636
"eslint-plugin-yml": "^1.18.0",
3737
"globals": "^16.4.0",
3838
"husky": "^9.1.7",
39-
"netlify-plugin-cache": "^1.0.3",
4039
"prettier": "^3.6.2",
4140
"pretty-quick": "^4.2.2",
4241
"typescript-eslint": "^8.43.0"
4342
},
44-
"packageManager": "yarn@4.9.2"
43+
"packageManager": "yarn@4.10.2"
4544
}

yarn.lock

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15149,13 +15149,6 @@ __metadata:
1514915149
languageName: node
1515015150
linkType: hard
1515115151

15152-
"netlify-plugin-cache@npm:^1.0.3":
15153-
version: 1.0.3
15154-
resolution: "netlify-plugin-cache@npm:1.0.3"
15155-
checksum: 10c0/0f80bdd52a9407e13ad26930435cd28cb1dddfb140c6a9cd3f7e8489ab46e7060bab0bb6ebddc16e542d19435cb21e58688d95a3756fd45051dd220b4b15ff13
15156-
languageName: node
15157-
linkType: hard
15158-
1515915152
"nlcst-is-literal@npm:^2.0.0":
1516015153
version: 2.1.1
1516115154
resolution: "nlcst-is-literal@npm:2.1.1"
@@ -17413,7 +17406,6 @@ __metadata:
1741317406
eslint-plugin-yml: "npm:^1.18.0"
1741417407
globals: "npm:^16.4.0"
1741517408
husky: "npm:^9.1.7"
17416-
netlify-plugin-cache: "npm:^1.0.3"
1741717409
prettier: "npm:^3.6.2"
1741817410
pretty-quick: "npm:^4.2.2"
1741917411
typescript-eslint: "npm:^8.43.0"

0 commit comments

Comments
 (0)