Skip to content

Commit 179e6d8

Browse files
authored
feat: migrate to nodejs 22 and remove unused code (#2703)
1 parent e1921a4 commit 179e6d8

File tree

16 files changed

+25
-194
lines changed

16 files changed

+25
-194
lines changed

.github/workflows/deploy-sloths.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Node.js environment
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: '20'
24+
node-version: '22'
2525

2626
- name: Checkout
2727
uses: actions/checkout@v4

.github/workflows/deploy.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Node.js environment
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: '20'
21+
node-version: '22'
2222

2323
- name: Checkout
2424
uses: actions/checkout@v4
@@ -104,7 +104,7 @@ jobs:
104104
- name: Setup Node.js environment
105105
uses: actions/setup-node@v4
106106
with:
107-
node-version: '20'
107+
node-version: '22'
108108

109109
- name: Checkout
110110
uses: actions/checkout@v4
@@ -165,7 +165,7 @@ jobs:
165165
- name: Setup Node.js environment
166166
uses: actions/setup-node@v4
167167
with:
168-
node-version: '20'
168+
node-version: '22'
169169

170170
- name: Checkout
171171
uses: actions/checkout@v4

.github/workflows/pull_request.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Node.js environment
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: '20'
21+
node-version: '22'
2222

2323
- name: Checkout
2424
uses: actions/checkout@v4
@@ -40,7 +40,7 @@ jobs:
4040
- name: Setup Node.js environment
4141
uses: actions/setup-node@v4
4242
with:
43-
node-version: '20'
43+
node-version: '22'
4444

4545
- name: Checkout
4646
uses: actions/checkout@v4
@@ -90,7 +90,7 @@ jobs:
9090
- name: Setup Node.js environment
9191
uses: actions/setup-node@v4
9292
with:
93-
node-version: '20'
93+
node-version: '22'
9494

9595
- name: Checkout
9696
uses: actions/checkout@v4
@@ -243,7 +243,7 @@ jobs:
243243
- name: Setup Node.js environment
244244
uses: actions/setup-node@v4
245245
with:
246-
node-version: '20'
246+
node-version: '22'
247247

248248
- name: Checkout
249249
uses: actions/checkout@v4
@@ -297,7 +297,7 @@ jobs:
297297
- name: Setup Node.js environment
298298
uses: actions/setup-node@v4
299299
with:
300-
node-version: '20'
300+
node-version: '22'
301301

302302
- name: Restore npm cache
303303
uses: actions/cache@v4

.github/workflows/pull_request_close.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Node.js environment
1616
uses: actions/setup-node@v4
1717
with:
18-
node-version: '20'
18+
node-version: '22'
1919

2020
- name: Checkout
2121
uses: actions/checkout@v4

client/Dockerfile.lambda

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-bullseye-slim as builder
1+
FROM node:22-bullseye-slim as builder
22

33
ENV NEXT_RUNTIME nodejs
44

@@ -18,7 +18,7 @@ COPY client/dist client/
1818
COPY client/.next client/.next
1919

2020
# Lambda Container
21-
FROM public.ecr.aws/lambda/nodejs:20
21+
FROM public.ecr.aws/lambda/nodejs:22
2222

2323
ENV NODE_ENV production
2424
ENV TZ utc

nestjs/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine
1+
FROM node:22-alpine
22

33
EXPOSE 8080
44

nestjs/Dockerfile.lambda

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-bullseye-slim as builder
1+
FROM node:22-bullseye-slim as builder
22

33
WORKDIR /container_out
44

@@ -13,7 +13,7 @@ COPY nestjs/lambda nestjs/
1313
COPY nestjs/dist nestjs/
1414

1515
# Lambda Container
16-
FROM public.ecr.aws/lambda/nodejs:20
16+
FROM public.ecr.aws/lambda/nodejs:22
1717

1818
ENV NODE_ENV production
1919
ENV TZ utc

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"client"
99
],
1010
"engines": {
11-
"node": ">=20",
11+
"node": ">=22",
1212
"npm": ">=10"
1313
},
1414
"scripts": {

server/Dockerfile.lambda

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-bullseye-slim as builder
1+
FROM node:22-bullseye-slim as builder
22

33
WORKDIR /container_out
44

@@ -14,7 +14,7 @@ COPY server/lambda server/
1414
COPY server/dist server/
1515

1616
# Lambda Container
17-
FROM public.ecr.aws/lambda/nodejs:20
17+
FROM public.ecr.aws/lambda/nodejs:22
1818

1919
ENV NODE_ENV production
2020
ENV TZ utc

0 commit comments

Comments
 (0)