From 4050c1400e945b962e21f3b6a68976cf0b523835 Mon Sep 17 00:00:00 2001 From: Santiago Chabert Date: Thu, 3 Jul 2025 12:08:50 -0300 Subject: [PATCH 1/3] chore: update Node.js version to 22.17.0 --- .node-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.node-version b/.node-version index f3f52b4..fc37597 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -20.9.0 +22.17.0 From cac1b94fef075ad81f9ee2fd3548b9bd722c6ee0 Mon Sep 17 00:00:00 2001 From: Santiago Chabert Date: Fri, 4 Jul 2025 12:17:13 -0300 Subject: [PATCH 2/3] chore: upgrade Node.js version across Dockerfile, README, CI workflows, and configuration files to 22.17.0 --- .github/workflows/node.js.yml | 4 ++-- .woodpecker/.backend-ci.yml | 2 +- Dockerfile | 4 ++-- README.md | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 2cd91a2..f356bf7 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -53,10 +53,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Use Node.js 20.9.0 + - name: Use Node.js 22.17.0 uses: actions/setup-node@v3 with: - node-version: 20.9.0 + node-version: 22.17.0 cache: 'npm' - name: Install libraries run: npm ci --prefer-offline diff --git a/.woodpecker/.backend-ci.yml b/.woodpecker/.backend-ci.yml index e448af8..20701a2 100644 --- a/.woodpecker/.backend-ci.yml +++ b/.woodpecker/.backend-ci.yml @@ -1,5 +1,5 @@ x-common: &common - image: 'node:20.9.0' + image: 'node:22.17.0' environment: - BASE_URL=http://dummy-server - NODE_ENV=test diff --git a/Dockerfile b/Dockerfile index 7b991d2..4378568 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Start with fully-featured Node.js base image -FROM node:20.9.0 AS builder +FROM node:22.17.0 AS builder WORKDIR /home/node/app # Copy dependency information and install production dependencies @@ -20,7 +20,7 @@ RUN npm run build # Run-time stage -FROM node:20.9.0-alpine +FROM node:22.17.0-alpine WORKDIR /home/node/app diff --git a/README.md b/README.md index f5c8ba5..021fb4c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![node version](https://img.shields.io/badge/node-20.9.0-brightgreen) +![node version](https://img.shields.io/badge/node-22.17.0-brightgreen) ![express version](https://img.shields.io/badge/express-4.17.1-brightgreen) ![prisma version](https://img.shields.io/badge/prisma-5.0.0-brightgreen) ![tsoa version](https://img.shields.io/badge/tsoa-5.1.1-brightgreen) @@ -11,7 +11,7 @@ This project contains Xmartlabs' Node.js template. ## Contributing to this Template -Make sure you have the appropriate version of Node (20.9.0) installed. +Make sure you have the appropriate version of Node (22.17.0) installed. Then install the required packages: @@ -34,7 +34,7 @@ npm test ## Project Setup -* Install Node 20.9.0 (as documented on [`.node-version`](./.node-version)) +* Install Node 22.17.0 (as documented on [`.node-version`](./.node-version)) * Install the appropriate version of npm: `npm i -g npm@10.1.0` * Install packages with `npm install` * Create a new `.env` file using the `.env.example` as an example. for that run `$ cp .env.example .env`. From 9c7467d24c98a0593e7924294aa252043ef2c396 Mon Sep 17 00:00:00 2001 From: Santiago Chabert Date: Thu, 31 Jul 2025 13:19:49 -0300 Subject: [PATCH 3/3] chore: remove npm version installation instruction from README --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 021fb4c..af4ec6e 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,6 @@ npm test ## Project Setup * Install Node 22.17.0 (as documented on [`.node-version`](./.node-version)) -* Install the appropriate version of npm: `npm i -g npm@10.1.0` * Install packages with `npm install` * Create a new `.env` file using the `.env.example` as an example. for that run `$ cp .env.example .env`. * Set the variables in the new environment file `.env` you created above.