Skip to content

Commit

Permalink
perf(project): use node 20 in deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
jerem1508 committed Nov 14, 2024
1 parent f191119 commit 16f5a4f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
COPY server ./server
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16f5a4f

Please sign in to comment.