From f2257cf5d67e1e3c7571f9a544ac7751ea86eec8 Mon Sep 17 00:00:00 2001 From: Emiel Van Severen Date: Thu, 7 Nov 2024 23:49:15 +0100 Subject: [PATCH] bump: upgrade to node 22 --- .github/workflows/builds.yml | 2 +- .github/workflows/codestyle.yml | 2 +- .github/workflows/deploy-docs.yml | 2 +- .github/workflows/docker.yml | 4 ++-- .github/workflows/publish-libs.yml | 2 +- containers/generic-app/Dockerfile | 4 ++-- containers/generic-web/Dockerfile | 2 +- containers/takaro/dev.Dockerfile | 2 +- package-lock.json | 2 +- package.json | 2 +- packages/lib-components/Dockerfile.dev | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 72f06f0ba0..e526480004 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -21,7 +21,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: ./scripts/dev-init.sh diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index d68efd7407..a82084cd9b 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -27,7 +27,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' - run: ./scripts/dev-init.sh diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index ab63d26ef6..00d252ebcf 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -32,7 +32,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 - run: ./scripts/dev-init.sh diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 054b0f2394..5db1b7280e 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -93,7 +93,7 @@ jobs: runs-on: ubuntu-24.04 strategy: matrix: - node-version: [20] + node-version: [22] steps: - name: Generate token @@ -160,7 +160,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 - run: ./scripts/dev-init.sh - name: Install Playwright Browsers run: npx playwright install --with-deps diff --git a/.github/workflows/publish-libs.yml b/.github/workflows/publish-libs.yml index 9882fc8b84..32127c0cc9 100644 --- a/.github/workflows/publish-libs.yml +++ b/.github/workflows/publish-libs.yml @@ -34,7 +34,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: 'npm' registry-url: 'https://registry.npmjs.org' diff --git a/containers/generic-app/Dockerfile b/containers/generic-app/Dockerfile index 0c93784cb8..fd68e65722 100644 --- a/containers/generic-app/Dockerfile +++ b/containers/generic-app/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.18.0-alpine AS builder +FROM node:22.11.0-alpine AS builder ARG PACKAGE ENV NODE_ENV=development @@ -21,7 +21,7 @@ RUN npm run -w packages/${PACKAGE} build # So with this command we prebuild library packages and make them available for later RUN find packages -type d -name 'lib-*' -exec sh -c 'npm run -w {} build && mkdir -p libraries/{}/ && cp -r {}/dist libraries/{}/ && cp -r {}/package*.json libraries/{}/' \; -FROM node:20.18.0-alpine AS runner +FROM node:22.11.0-alpine AS runner # Version 9+ is required to run npm scripts as root RUN npm install -g npm@9 diff --git a/containers/generic-web/Dockerfile b/containers/generic-web/Dockerfile index 1809b91d80..16a8950ec3 100644 --- a/containers/generic-web/Dockerfile +++ b/containers/generic-web/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.18.0-alpine AS builder +FROM node:22.11.0-alpine AS builder ARG PACKAGE ENV NODE_ENV=development diff --git a/containers/takaro/dev.Dockerfile b/containers/takaro/dev.Dockerfile index 0584b8b694..80209fd26e 100644 --- a/containers/takaro/dev.Dockerfile +++ b/containers/takaro/dev.Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.18.0-bullseye +FROM node:22.11.0-bullseye ENV NODE_ENV=development diff --git a/package-lock.json b/package-lock.json index 716eca39df..9203b104cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -120,7 +120,7 @@ "zx": "7.2.3" }, "engines": { - "node": "20.18.0", + "node": "22.11.0", "npm": "10.9.0" }, "optionalDependencies": { diff --git a/package.json b/package.json index 5d77c6a233..cefa9c786b 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "release:patch": "npm version patch --no-git-tag-version --workspaces && git add **/package.json; npm version patch --include-workspace-root --force" }, "engines": { - "node": "20.18.0", + "node": "22.11.0", "npm": "10.9.0" }, "contributors": [ diff --git a/packages/lib-components/Dockerfile.dev b/packages/lib-components/Dockerfile.dev index 9364a0bf89..d170c63d0c 100644 --- a/packages/lib-components/Dockerfile.dev +++ b/packages/lib-components/Dockerfile.dev @@ -1,4 +1,4 @@ -FROM node:20.18.0-alpine AS build +FROM node:22.11.0-alpine AS build ENV NODE_ENV=development WORKDIR /app