Skip to content

Commit 36f56df

Browse files
authored
[infra] Bump node.js version and make local usage strict (#46834)
1 parent cc5313c commit 36f56df

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ default-job: &default-job
4646
DANGER_DISABLE_TRANSPILATION: 'true'
4747
working_directory: /tmp/material-ui
4848
docker:
49-
- image: cimg/node:20.19
49+
- image: cimg/node:22.18
5050

5151
default-context: &default-context
5252
context:

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
continuous-releases:
1919
name: Continuous releases
2020
uses: mui/mui-public/.github/workflows/ci-base.yml@master
21-
with:
22-
node-version: '22'
2321

2422
# Tests dev-only scripts across all supported dev environments
2523
test-dev:
@@ -37,10 +35,10 @@ jobs:
3735
fetch-depth: 0
3836
- name: Set up pnpm
3937
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
40-
- name: Use Node.js 20.x
38+
- name: Use Node.js
4139
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
4240
with:
43-
node-version: 20.19.4
41+
node-version: '22.18.0'
4442
cache: 'pnpm' # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies
4543
- run: pnpm install
4644
- run: pnpm build:ci

.github/workflows/publish-canaries.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
fetch-depth: 0
1515
- name: Set up pnpm
1616
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
17-
- name: Use Node.js 20.x
17+
- name: Use Node.js
1818
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
1919
with:
20-
node-version: 20.19.4
20+
node-version: '22.18.0'
2121
cache: 'pnpm' # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies
2222
- run: pnpm install
2323
- run: pnpm canary:release --ignore @mui/icons-material --yes --skip-last-commit-comparison

docs/config.ts renamed to docs/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const LANGUAGES_SSR = ['en'];
77
// Work in progress
88
export const LANGUAGES_IN_PROGRESS = LANGUAGES.slice();
99

10-
export const LANGUAGES_IGNORE_PAGES = (pathname: string) => {
10+
export const LANGUAGES_IGNORE_PAGES = (/** @type {string} */ pathname) => {
1111
// We don't have the bandwidth like Qt to translate our blog posts
1212
// https://www.qt.io/zh-cn/blog
1313
if (pathname === '/blog' || pathname.startsWith('/blog/')) {

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
command = "pnpm docs:build"
77

88
[build.environment]
9-
NODE_VERSION = "20"
9+
NODE_VERSION = "22.18"
1010
PNPM_FLAGS = "--frozen-lockfile"
1111

1212
[[plugins]]

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@
191191
},
192192
"packageManager": "pnpm@10.15.0",
193193
"engines": {
194-
"pnpm": "10.15.0"
194+
"pnpm": "10.15.0",
195+
"node": ">=22.18.0"
195196
},
196197
"resolutions": {
197198
"@babel/core": "^7.28.3",

pnpm-lock.yaml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ patchedDependencies:
1212

1313
onlyBuiltDependencies:
1414
- '@vvago/vale'
15+
16+
engineStrict: true

0 commit comments

Comments
 (0)