Skip to content

Fully autonomous AI Agents system capable of performing complex penetration testing tasks

build(frontend): pin Node 24.17.0 and pnpm 11.8.0 across all builds

Sergey Kozyrenko9b073e21839e
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1f0d0050..27aab6d8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -17,6 +17,12 @@ jobs:
with:
fetch-depth: 0
+ - name: Verify Node version pins match .nvmrc
+ run: |
+ NVMRC="$(tr -dc '0-9.' < frontend/.nvmrc)"
+ echo "Expected Node: $NVMRC"
+ grep -q "node:${NVMRC}-slim" Dockerfile || { echo "::error::Dockerfile node tag != .nvmrc ($NVMRC)"; exit 1; }
+
# Go setup and cache
- name: Set up Go
uses: actions/setup-go@v6
@@ -46,7 +52,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v6
with:
- node-version: '23'
+ node-version-file: frontend/.nvmrc
cache: 'pnpm'
cache-dependency-path: 'frontend/pnpm-lock.yaml'
diff --git a/Dockerfile b/Dockerfile
index b4ce1ede..c33cf2c1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,7 +3,7 @@
# ========================================
# Stage 1: Frontend Application Build
# ========================================
-FROM node:23-slim AS frontend-compiler
+FROM node:24.17.0-slim AS frontend-compiler
# Production build configuration
ENV NODE_ENV=production
@@ -22,7 +22,7 @@ RUN apt-get update && apt-get install -y \
g++ \
make \
git \
- && corepack enable && corepack prepare pnpm@latest --activate
+ && corepack enable
# GraphQL schema for code generation
COPY ./backend/pkg/graph/schema.graphqls ../backend/pkg/graph/
diff --git a/frontend/.nvmrc b/frontend/.nvmrc
new file mode 100644
index 00000000..1dd37d53
--- /dev/null
+++ b/frontend/.nvmrc
@@ -0,0 +1 @@
+24.17.0
diff --git a/frontend/package.json b/frontend/package.json
index f8e633da..8022c83f 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -140,13 +140,7 @@
"vite-tsconfig-paths": "^6.1.1",
"vitest": "^4.1.6"
},
- "packageManager": "[email protected]",
- "pnpm": {
- "onlyBuiltDependencies": [
- "@swc/core",
- "esbuild"
- ]
- },
+ "packageManager": "[email protected]",
"eslintConfig": {
"extends": [
"plugin:storybook/recommended"
diff --git a/frontend/pnpm-workspace.yaml b/frontend/pnpm-workspace.yaml
new file mode 100644
index 00000000..99cceb00
--- /dev/null
+++ b/frontend/pnpm-workspace.yaml
@@ -0,0 +1,3 @@
+allowBuilds:
+ '@swc/core': true
+ esbuild: true