From 16f5a4f7ede0ed35ce410efa2a886a4b5c10c2af Mon Sep 17 00:00:00 2001 From: jerem Date: Thu, 14 Nov 2024 08:41:13 +0100 Subject: [PATCH] perf(project): use node 20 in deployments --- .github/workflows/production.yml | 2 +- .github/workflows/staging.yml | 2 +- Dockerfile | 2 +- README.md | 4 ++++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 1db52764..dcc4e520 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -30,7 +30,7 @@ jobs: - name: 🏗️ Build app uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - run: npm ci --silent && npm run build --mode=production - name: 🤖 Delete robots.txt file for production diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index ec5d0e4a..c84dd0e6 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -26,7 +26,7 @@ jobs: - name: 🏗️ Build app uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - run: npm ci --silent && npm run build --mode=staging - name: 🐋 Build Docker image diff --git a/Dockerfile b/Dockerfile index 573d32e5..22cfe5ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-alpine +FROM node:20-alpine WORKDIR /app COPY package*.json ./ COPY server ./server diff --git a/README.md b/README.md index acfbf915..3bc719a3 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,10 @@ Retrieve the scholarly works of your institution. The react client app is served by the node server in production. +## Requirements + +node >= 20 + ## Install and run app Run