Skip to content

Commit 727fba0

Browse files
authored
build: upgrade node to 22 (#75)
* build: upgrade node to 22 * ci: fix init-npm
1 parent fd10ef0 commit 727fba0

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

.github/actions/init-npm/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inputs:
44
node-version:
55
description: 'Node.js version'
66
required: true
7-
default: '20.x'
7+
default: '22.13.1'
88
runs:
99
using: composite
1010
steps:

.github/workflows/pull-request.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node: [20.x, 22.x]
15+
node: [22.13.1]
1616

1717
steps:
1818
- name: Check out TS Project Git repository
@@ -53,7 +53,7 @@ jobs:
5353

5454
strategy:
5555
matrix:
56-
node: [20.x, 22.x]
56+
node: [22.13.1]
5757

5858
services:
5959
# Label used to access the service container

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20
1+
v22

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG CONFIG_UI_TAG_OR_HASH=a132252dda4dbe7ab0b14a92d0af06a9f50d7bd4
22

3-
FROM node:20 as build
3+
FROM node:22.13.1 as build
44

55
WORKDIR /tmp/buildApp
66

@@ -10,7 +10,7 @@ RUN npm ci
1010
COPY . .
1111
RUN npm run build
1212

13-
FROM node:20 as build-ui
13+
FROM node:22.13.1 as build-ui
1414

1515
WORKDIR /tmp/buildApp
1616
RUN apt-get update && apt-get install -y git
@@ -20,7 +20,7 @@ RUN git clone https://github.com/MapColonies/config-ui.git && \
2020
npm ci && \
2121
npm run build
2222

23-
FROM node:20.3.1-alpine3.17 as production
23+
FROM node:22.13.1-alpine3.21 as production
2424

2525
RUN apk add dumb-init
2626

package-lock.json

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

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,8 @@
117117
"ts-node": "10.9.2",
118118
"typescript": "^5.7.2",
119119
"tsc-alias": "^1.8.10"
120+
},
121+
"engines": {
122+
"node": ">=22.13.1"
120123
}
121124
}

0 commit comments

Comments
 (0)