From ad4a8c1a3d2b6052166b70d08e7eedc568456455 Mon Sep 17 00:00:00 2001 From: Anirban Mukhopadhyay Date: Sat, 16 Mar 2024 12:28:58 -0700 Subject: [PATCH] Upgrade to Node 20 (latest LTS) --- .github/workflows/build.yml | 2 +- Dockerfile | 2 +- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c2b3984..920c065 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,6 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - run: npm ci - run: npm run build diff --git a/Dockerfile b/Dockerfile index 2e78424..4b5d58e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM docker.io/library/node:18-alpine AS base-image +FROM docker.io/library/node:20-alpine AS base-image RUN apk update && apk upgrade && rm -rf /var/cache/apk/* && npm install -g npm # Build svelte app into /src/public/build & server.js diff --git a/package-lock.json b/package-lock.json index a206c7e..fca07f5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37,7 +37,7 @@ "typescript": "^5.4.2" }, "engines": { - "node": "^18.14" + "node": "^20.5" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index c4c8eae..6797c80 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "license": "MIT", "engines": { - "node": "^18.14" + "node": "^20.5" }, "scripts": { "build": "rollup -c && npm run build-server",