Skip to content

Commit 6b45125

Browse files
feat: upgrade dapp from Node 14 to Node 18
1 parent f2096c7 commit 6b45125

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

.github/workflows/dapp-ci.yml

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

2424
- uses: actions/setup-node@v4
2525
with:
26-
node-version: '14.21.3'
26+
node-version: '18.19.0'
2727
cache: 'npm'
2828
cache-dependency-path: dapp/package-lock.json
2929

@@ -53,7 +53,7 @@ jobs:
5353

5454
- uses: actions/setup-node@v4
5555
with:
56-
node-version: '14.21.3'
56+
node-version: '18.19.0'
5757
cache: 'npm'
5858
cache-dependency-path: dapp/package-lock.json
5959

.github/workflows/dapp-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
- name: Setup Node.js
9191
uses: actions/setup-node@v4
9292
with:
93-
node-version: '14.21.3'
93+
node-version: '18.19.0'
9494
cache: 'npm'
9595

9696
- name: Install dependencies

.github/workflows/dapp-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
- name: Setup Node.js
7676
uses: actions/setup-node@v4
7777
with:
78-
node-version: '20.19.0'
78+
node-version: '18.19.0'
7979
cache: 'npm'
8080

8181
- name: Install dependencies

dapp/.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14
1+
18

dapp/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM node:14-alpine3.17
1+
FROM node:18-alpine
22
WORKDIR /app
33
COPY package*.json ./
44
RUN npm ci --production
55
COPY ./src .
6-
ENTRYPOINT [ "node", "/app/app.js"]
6+
ENTRYPOINT [ "node", "/app/src/app.js"]

dapp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "",
55
"main": "index.js",
66
"engines": {
7-
"node": ">=14.0.0",
8-
"npm": ">=6.0.0"
7+
"node": ">=18.0.0",
8+
"npm": ">=8.0.0"
99
},
1010
"scripts": {
1111
"start": "node src/app.js",

0 commit comments

Comments
 (0)