refactor: update Node.js version to 22 and adjust npm install commands for consistency

This commit is contained in:
LaurensBartelds committed 2026-04-27 00:24:25 +02:00
1 parent 62af83ce53
commit 0b62723226
3 files changed
+9 -8

No files matched your search

+2 -2
View File
@@ -17,11 +17,11 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
- name: Install Frontend Dependencies
working-directory: ./frontend
run: npm ci
run: npm ci --legacy-peer-deps
- name: Run Frontend Tests
working-directory: ./frontend
+4 -4
View File
@@ -1,13 +1,13 @@
# Stage 1: Build the frontend
FROM node:20-alpine AS frontend-builder
FROM node:22-alpine AS frontend-builder
WORKDIR /app/frontend
COPY frontend/package*.json ./
RUN npm ci
RUN npm ci --legacy-peer-deps
COPY frontend/ ./
RUN npm run build
# Stage 2: Build the backend
FROM node:20-alpine AS backend-builder
FROM node:22-alpine AS backend-builder
WORKDIR /app/backend
COPY backend/package*.json ./
RUN npm ci
@@ -15,7 +15,7 @@ COPY backend/ ./
RUN npm run build
# Stage 3: Production
FROM node:20-alpine AS production
FROM node:22-alpine AS production
# Install build tools for native modules like better-sqlite3
RUN apk add --no-cache python3 make g++
WORKDIR /app
+3 -2
View File
@@ -12,7 +12,7 @@
ansible.builtin.file:
path: "{{ deploy_dir }}"
state: directory
mode: '0755'
mode: "0755"
- name: Copy ARM tarball
ansible.builtin.copy:
@@ -33,4 +33,5 @@
ansible.builtin.command: docker compose up -d
args:
chdir: "{{ deploy_dir }}"
changed_when: true
register: compose_up
changed_when: "'Started' in compose_up.stdout or 'Created' in compose_up.stdout or 'Recreating' in compose_up.stdout"