mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-01 10:11:50 +02:00
🧑💻 Update to node 20 and add .nvmrc file (#1169)
This commit is contained in:
parent
1bda96cf55
commit
3758daf301
4 changed files with 6 additions and 5 deletions
2
.github/actions/setup-node/action.yml
vendored
2
.github/actions/setup-node/action.yml
vendored
|
@ -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
1
.nvmrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
20
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue