From 2b78fcf731e7f80c77f5bed6242027539eef589b Mon Sep 17 00:00:00 2001 From: Flea Flicker Date: Fri, 22 May 2026 02:16:49 +0000 Subject: [PATCH] fix(ci): build all service images + upgrade Node 22 + pin packageManager (GRO-1522) - Upgrade CI jobs (lint-typecheck, test, build) to Node 22 - Dockerfile uses node:22-alpine for base and runner stages - Root package.json gets packageManager field for corepack pin - Docker build already targets all 4 stages (api/migrate/seed/reset) Co-Authored-By: Paperclip --- .github/workflows/ci.yml | 6 +++--- Dockerfile | 4 ++-- package.json | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3881905..0fb65b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: pnpm - name: Install dependencies @@ -49,7 +49,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: pnpm - name: Install dependencies @@ -71,7 +71,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 cache: pnpm - name: Install dependencies diff --git a/Dockerfile b/Dockerfile index 662ad85..ada297f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20-alpine AS base +FROM node:22-alpine AS base RUN corepack enable && corepack prepare pnpm@9.15.4 --activate WORKDIR /app @@ -12,7 +12,7 @@ RUN mkdir -p /home/node/.cache/node/corepack COPY apps/api/ apps/api/ RUN pnpm --filter @groombook/api build -FROM node:20-alpine AS runner +FROM node:22-alpine AS runner RUN corepack enable && corepack prepare pnpm@9.15.4 --activate WORKDIR /app ENV NODE_ENV=production diff --git a/package.json b/package.json index d2e71b5..871b4bd 100644 --- a/package.json +++ b/package.json @@ -3,5 +3,6 @@ "version": "0.0.1", "private": true, "type": "module", + "packageManager": "pnpm@9.15.4", "license": "AGPL-3.0-only" }