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