Skip to content

Commit 5ed6226

Browse files
authored
Use Node 24 in CI and for building the frontend (#5229)
2 parents a20cd1d + a0696db commit 5ed6226

File tree

13 files changed

+948
-1550
lines changed

13 files changed

+948
-1550
lines changed

.github/actions/build-frontend/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ runs:
1010
using: composite
1111
steps:
1212
- name: Install Node
13-
uses: actions/setup-node@v4.2.0
13+
uses: actions/setup-node@v6.0.0
1414
with:
15-
node-version: "22"
15+
node-version: "24"
1616

1717
- name: Install dependencies
1818
run: npm ci

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- name: Install Node
6767
uses: actions/setup-node@v6.0.0
6868
with:
69-
node-version: 22
69+
node-version: 24
7070

7171
- name: Install Node dependencies
7272
working-directory: ./frontend
@@ -90,7 +90,7 @@ jobs:
9090
- name: Install Node
9191
uses: actions/setup-node@v6.0.0
9292
with:
93-
node-version: 22
93+
node-version: 24
9494

9595
- name: Install Node dependencies
9696
working-directory: ./frontend
@@ -114,7 +114,7 @@ jobs:
114114
- name: Install Node
115115
uses: actions/setup-node@v6.0.0
116116
with:
117-
node-version: 20
117+
node-version: 24
118118

119119
- name: Install Node dependencies
120120
working-directory: ./frontend

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Install Node
4242
uses: actions/setup-node@v6.0.0
4343
with:
44-
node-version: 22
44+
node-version: 24
4545

4646
- name: Build the documentation
4747
run: sh misc/build-docs.sh

.github/workflows/release-branch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- name: Install Node
6767
uses: actions/setup-node@v6.0.0
6868
with:
69-
node-version: 22
69+
node-version: 24
7070

7171
- name: Install Localazy CLI
7272
run: npm install -g @localazy/cli

.github/workflows/translations-download.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Install Node
2525
uses: actions/setup-node@v6.0.0
2626
with:
27-
node-version: 22
27+
node-version: 24
2828

2929
- name: Install Localazy CLI
3030
run: npm install -g @localazy/cli

.github/workflows/translations-upload.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Install Node
2424
uses: actions/setup-node@v6.0.0
2525
with:
26-
node-version: 22
26+
node-version: 24
2727

2828
- name: Install Localazy CLI
2929
run: npm install -g @localazy/cli

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
ARG DEBIAN_VERSION=12
1414
ARG DEBIAN_VERSION_NAME=bookworm
1515
ARG RUSTC_VERSION=1.89.0
16-
ARG NODEJS_VERSION=22.19.0
16+
ARG NODEJS_VERSION=24.11.0
1717
# Keep in sync with .github/actions/build-policies/action.yml and policies/Makefile
1818
ARG OPA_VERSION=1.8.0
1919
ARG CARGO_AUDITABLE_VERSION=0.7.0

frontend/i18next-parser.config.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

frontend/i18next.config.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright 2025 New Vector Ltd.
2+
//
3+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
4+
// Please see LICENSE files in the repository root for full details.
5+
6+
import { defineConfig } from "i18next-cli";
7+
8+
export default defineConfig({
9+
locales: ["en"],
10+
extract: {
11+
input: "src/**/*.{ts,tsx}",
12+
output: "locales/{{language}}.json",
13+
defaultNS: false,
14+
pluralSeparator: ":",
15+
keySeparator: ".",
16+
sort: true,
17+
},
18+
});

frontend/knip.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ import type { KnipConfig } from "knip";
77

88
export default {
99
entry: ["src/main.tsx", "src/swagger.ts", "src/routes/*"],
10-
ignore: ["src/gql/*", "src/routeTree.gen.ts", ".storybook/locales.ts"],
10+
ignore: [
11+
"src/gql/*",
12+
"src/routeTree.gen.ts",
13+
".storybook/locales.ts",
14+
"i18next.config.ts",
15+
],
1116
ignoreDependencies: [
1217
// This is used by the tailwind PostCSS plugin, but not detected by knip
1318
"postcss-nesting",

0 commit comments

Comments
 (0)