Fix CI: install Node.js 22 for Vite 8 compatibility
Some checks failed
CI / build (push) Successful in 1m9s
CI / deploy (push) Has been cancelled
CI / docker (push) Has been cancelled

Vite 8 requires Node.js 20.19+ or 22.12+. The previous apt install
gave Node.js 18. Switch to NodeSource repo for Node.js 22.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-13 14:02:18 +01:00
parent 3eb83f97d3
commit b40c197c21

View File

@@ -14,9 +14,13 @@ jobs:
container:
image: maven:3.9-eclipse-temurin-17
steps:
- name: Install Node.js
- name: Install Node.js 22
run: |
apt-get update && apt-get install -y nodejs npm
apt-get update && apt-get install -y ca-certificates curl gnupg
mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" > /etc/apt/sources.list.d/nodesource.list
apt-get update && apt-get install -y nodejs
- uses: actions/checkout@v4