🧑‍💻 Update to node 20 and add .nvmrc file (#1169)

This commit is contained in:
Luke Vella 2024-06-20 08:55:41 +01:00 committed by GitHub
parent 1bda96cf55
commit 3758daf301
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 5 deletions

View file

@ -4,7 +4,7 @@ inputs:
node-version: node-version:
description: "Node.js version" description: "Node.js version"
required: true required: true
default: "18" default: "20"
cache: cache:
description: "Package manager for caching" description: "Package manager for caching"
required: false required: false

1
.nvmrc Normal file
View file

@ -0,0 +1 @@
20

View file

@ -1,11 +1,11 @@
FROM node:18 AS builder FROM node:20 AS builder
WORKDIR /app WORKDIR /app
RUN yarn global add turbo RUN yarn global add turbo
COPY . . COPY . .
RUN turbo prune --scope=@rallly/web --docker RUN turbo prune --scope=@rallly/web --docker
FROM node:18 AS installer FROM node:20 AS installer
WORKDIR /app WORKDIR /app
COPY .gitignore .gitignore COPY .gitignore .gitignore
@ -26,7 +26,7 @@ ENV NEXT_PUBLIC_SELF_HOSTED=$SELF_HOSTED
RUN yarn build RUN yarn build
FROM node:18 AS runner FROM node:20 AS runner
WORKDIR /app WORKDIR /app

View file

@ -53,7 +53,7 @@
"vitest": "^1.3.1" "vitest": "^1.3.1"
}, },
"engines": { "engines": {
"node": ">=18.17.0" "node": "20.x"
}, },
"packageManager": "yarn@1.22.19" "packageManager": "yarn@1.22.19"
} }