From 8264de5d993936e7e7008c26fd5a8684b5d06983 Mon Sep 17 00:00:00 2001 From: Petter Holt Juliussen Date: Mon, 3 Jun 2024 12:05:22 +0200 Subject: [PATCH] Upgrade to node v20 --- .github/workflows/nodejs.yml | 9 +++++---- .github/workflows/pull_request.yml | 8 ++++---- Dockerfile | 2 +- package-lock.json | 2 +- package.json | 2 +- server/package-lock.json | 2 +- server/package.json | 2 +- 7 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 077820cf..12f66135 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -13,13 +13,13 @@ jobs: strategy: matrix: - node-version: [16.x] + node-version: [20.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - name: Cache - uses: actions/cache@v2 + uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: path: | ~/cache @@ -31,9 +31,10 @@ jobs: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: ${{ matrix.node-version }} + - name: npm install, test, and build run: | npm install diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 39946dc4..ce575c78 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -10,13 +10,13 @@ jobs: strategy: matrix: - node-version: [16.x] + node-version: [20.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - name: Cache - uses: actions/cache@v2 + uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: path: | ~/cache @@ -28,7 +28,7 @@ jobs: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 with: node-version: ${{ matrix.node-version }} - name: npm install, test, and build diff --git a/Dockerfile b/Dockerfile index 86ec30bb..b3ef325b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-alpine@sha256:5069da655539e2e986ce3fd1757f24a41b846958566c89ff4a48874434d73749 +FROM node:20-alpine@sha256:928b24aaadbd47c1a7722c563b471195ce54788bf8230ce807e1dd500aec0549 WORKDIR /usr/src/app/ COPY ./docs ./docs diff --git a/package-lock.json b/package-lock.json index e4b06479..f6c2fba0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -64,7 +64,7 @@ "vite": "^5.2.12" }, "engines": { - "node": "18" + "node": "20" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index 5319e18c..91170263 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "test:unit:watch": "NODE_ENV=test jest --watchAll" }, "engines": { - "node": "18" + "node": "20" }, "browserslist": { "production": [ diff --git a/server/package-lock.json b/server/package-lock.json index ded1b312..4dadd08f 100644 --- a/server/package-lock.json +++ b/server/package-lock.json @@ -18,7 +18,7 @@ "morgan": "^1.10.0" }, "engines": { - "node": "18" + "node": "20" } }, "node_modules/accepts": { diff --git a/server/package.json b/server/package.json index 1908741e..fc2e9c7c 100644 --- a/server/package.json +++ b/server/package.json @@ -8,7 +8,7 @@ "start": "node server.js" }, "engines": { - "node": "18" + "node": "20" }, "author": "", "license": "ISC",