From 1fc40da052fa99d052f367602fe002cb6a727253 Mon Sep 17 00:00:00 2001 From: Kacper Date: Sat, 20 Dec 2025 01:11:53 +0100 Subject: [PATCH] ci: add shared packages build step to CI workflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add build:packages script and update setup-project action to build shared packages after npm install. This ensures @automaker/* packages are compiled before apps can use them. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .github/actions/setup-project/action.yml | 5 +++++ package.json | 1 + 2 files changed, 6 insertions(+) diff --git a/.github/actions/setup-project/action.yml b/.github/actions/setup-project/action.yml index a58020ec..8ef0f33b 100644 --- a/.github/actions/setup-project/action.yml +++ b/.github/actions/setup-project/action.yml @@ -52,6 +52,11 @@ runs: @rollup/rollup-linux-x64-gnu@4.53.3 \ @tailwindcss/oxide-linux-x64-gnu@4.1.17 + - name: Build shared packages + shell: bash + # Build shared packages (types, utils, platform, etc.) before apps can use them + run: npm run build:packages + - name: Rebuild native modules (root) if: inputs.rebuild-node-pty-path == '' shell: bash diff --git a/package.json b/package.json index 5367c98a..26860ff4 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "dev:server": "npm run dev --workspace=apps/server", "dev:full": "concurrently \"npm run dev:server\" \"npm run dev:web\"", "build": "npm run build --workspace=apps/ui", + "build:packages": "npm run build -w @automaker/types && npm run build -w @automaker/utils -w @automaker/platform -w @automaker/model-resolver -w @automaker/dependency-resolver && npm run build -w @automaker/git-utils", "build:server": "npm run build --workspace=apps/server", "build:electron": "npm run build:electron --workspace=apps/ui", "build:electron:dir": "npm run build:electron:dir --workspace=apps/ui",