Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.9.0
22.17.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could take advantage of this not being merged and use the new LTS (22.18.0)

2 changes: 1 addition & 1 deletion .woodpecker/.backend-ci.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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:

Expand All @@ -34,8 +34,7 @@ npm test

## Project Setup

* Install Node 20.9.0 (as documented on [`.node-version`](./.node-version))
* Install the appropriate version of npm: `npm i -g [email protected]`
* Install Node 22.17.0 (as documented on [`.node-version`](./.node-version))
* 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.
Expand Down