Skip to content

Commit ef292c5

Browse files
feat: move to node v20
1 parent 7830e2b commit ef292c5

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- uses: actions/checkout@v3
4444
- uses: actions/setup-node@v3
4545
with:
46-
node-version: 18.x
46+
node-version: 20.x
4747
- name: Build
4848
run: |
4949
npm ci

Diff for: CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Hi! We're really excited that you're interested in contributing! Before submitti
1010

1111
## Project setup
1212

13-
In order to run the Globalping API locally you will need Node.js 18 and Redis with [RedisJSON](https://oss.redis.com/redisjson/) module and MariaDB. All of them are included in docker-compose.yml file. You will also need to run a development instance of the [Globalping Probe](https://github.com/jsdelivr/globalping-probe) at the same time when testing.
13+
In order to run the Globalping API locally you will need Node.js 20 and Redis with [RedisJSON](https://oss.redis.com/redisjson/) module and MariaDB. All of them are included in docker-compose.yml file. You will also need to run a development instance of the [Globalping Probe](https://github.com/jsdelivr/globalping-probe) at the same time when testing.
1414

1515
The API uses 3000 port by default. This can be overridden by `PORT` environment variable.
1616

Diff for: Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-bullseye-slim AS builder
1+
FROM node:20-bullseye-slim AS builder
22
RUN apt-get update -y && apt-get install util-linux curl git -y
33

44
ENV NODE_ENV production
@@ -9,7 +9,7 @@ RUN npm ci --include=dev
99
COPY . /app
1010
RUN npm run build
1111

12-
FROM node:18-bullseye-slim
12+
FROM node:20-bullseye-slim
1313
RUN apt-get update -y && apt-get install tini util-linux curl -y
1414

1515
ENV NODE_ENV production

Diff for: docs/staging-env.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ sudo systemctl start haproxy
6666
sudo apt-get install -y ca-certificates curl gnupg
6767
sudo mkdir -p /etc/apt/keyrings
6868
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
69-
NODE_MAJOR=18
69+
NODE_MAJOR=20
7070
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
7171
sudo apt-get update
7272
sudo apt-get install nodejs -y
@@ -99,7 +99,7 @@ PROBES_COUNT=300
9999
sudo apt-get install -y ca-certificates curl gnupg
100100
sudo mkdir -p /etc/apt/keyrings
101101
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
102-
NODE_MAJOR=18
102+
NODE_MAJOR=20
103103
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
104104
sudo apt-get update
105105
sudo apt-get install nodejs -y

Diff for: package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,6 @@
139139
"*.{cjs,js,json,ts}": "eslint --cache --fix"
140140
},
141141
"engines": {
142-
"node": "18"
142+
"node": "20"
143143
}
144144
}

0 commit comments

Comments
 (0)