Skip to content

Commit 83b5910

Browse files
authored
Upgrade Node.js to 24 (#51)
1 parent 6231461 commit 83b5910

File tree

7 files changed

+19
-9
lines changed

7 files changed

+19
-9
lines changed

.github/workflows/pr-verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77

88
env:
9-
NODE_VERSION: 22.x
9+
NODE_VERSION: 24.x
1010

1111
jobs:
1212
generate-resources:

.github/workflows/prepare-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- opened
99

1010
env:
11-
NODE_VERSION: 22.x
11+
NODE_VERSION: 24.x
1212

1313
jobs:
1414
prepare-release:

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ RUN curl -s -o helm-v${HELM_VERSION}-windows-amd64.tar.gz https://get.helm.sh/he
3030
&& curl -LO "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/windows/amd64/kubectl.exe" \
3131
&& mv kubectl.exe ${BINS_DIR}/kubectl.exe
3232

33-
FROM --platform=$BUILDPLATFORM openapitools/openapi-generator-cli:v6.6.0 AS backend-client-generator
33+
FROM --platform=$BUILDPLATFORM openapitools/openapi-generator-cli:v7.14.0 AS backend-client-generator
3434

3535
COPY ui /ui
3636
WORKDIR /ui
3737

38-
RUN /usr/local/bin/docker-entrypoint.sh generate -g typescript-axios -i https://api.apps.rancher.io/api-docs -o autogenerated/client/backend --additional-properties usePromises=true --model-name-suffix=DTO
38+
RUN /usr/local/bin/docker-entrypoint.sh generate -g typescript-axios -i https://api.apps.rancher.io/api-docs -o autogenerated/client/backend --model-name-suffix=DTO
3939

40-
FROM --platform=$BUILDPLATFORM dp.apps.rancher.io/containers/nodejs:22-dev AS client-builder
40+
FROM --platform=$BUILDPLATFORM dp.apps.rancher.io/containers/nodejs:24-dev AS client-builder
4141
WORKDIR /ui
4242
# cache packages in layer
4343
COPY ui/package.json /ui/package.json
@@ -50,7 +50,7 @@ COPY ui /ui
5050
COPY --from=backend-client-generator /ui/autogenerated /ui/autogenerated
5151
RUN npm run build
5252

53-
FROM --platform=$BUILDPLATFORM dp.apps.rancher.io/containers/nodejs:22-dev AS backend-builder
53+
FROM --platform=$BUILDPLATFORM dp.apps.rancher.io/containers/nodejs:24-dev AS backend-builder
5454
WORKDIR /backend
5555
# cache packages in layer
5656
COPY backend/package.json /backend/package.json
@@ -61,7 +61,7 @@ RUN --mount=type=cache,target=/usr/src/app/.npm \
6161
# install
6262
COPY backend /backend
6363

64-
FROM dp.apps.rancher.io/containers/nodejs:22
64+
FROM dp.apps.rancher.io/containers/nodejs:24
6565

6666
ARG RELEASE_VERSION=latest
6767

backend/package-lock.json

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

backend/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"name": "backend",
33
"version": "0.4.1",
44
"private": true,
5+
"engines": {
6+
"node": "^24",
7+
"npm": "^11"
8+
},
59
"scripts": {
610
"start": "node ./bin/www",
711
"lint": "eslint .",

ui/package-lock.json

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

ui/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"private": true,
55
"type": "module",
66
"engines": {
7-
"node": ">=22.0.0"
7+
"node": "^24",
8+
"npm": "^11"
89
},
910
"dependencies": {
1011
"@docker/extension-api-client": "0.3.4",

0 commit comments

Comments
 (0)