Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

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

Luke Vella3758daf30181
diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml
index 18f1ea925..6e9fbc868 100644
--- a/.github/actions/setup-node/action.yml
+++ b/.github/actions/setup-node/action.yml
@@ -4,7 +4,7 @@ inputs:
node-version:
description: "Node.js version"
required: true
- default: "18"
+ default: "20"
cache:
description: "Package manager for caching"
required: false
diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 000000000..2edeafb09
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+20
\ No newline at end of file
diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile
index 04b22a88b..808193942 100644
--- a/apps/web/Dockerfile
+++ b/apps/web/Dockerfile
@@ -1,11 +1,11 @@
-FROM node:18 AS builder
+FROM node:20 AS builder
WORKDIR /app
RUN yarn global add turbo
COPY . .
RUN turbo prune --scope=@rallly/web --docker
-FROM node:18 AS installer
+FROM node:20 AS installer
WORKDIR /app
COPY .gitignore .gitignore
@@ -26,7 +26,7 @@ ENV NEXT_PUBLIC_SELF_HOSTED=$SELF_HOSTED
RUN yarn build
-FROM node:18 AS runner
+FROM node:20 AS runner
WORKDIR /app
diff --git a/package.json b/package.json
index 8395f392b..b6d225675 100644
--- a/package.json
+++ b/package.json
@@ -53,7 +53,7 @@
"vitest": "^1.3.1"
},
"engines": {
- "node": ">=18.17.0"
+ "node": "20.x"
},
"packageManager": "[email protected]"
}