From 4edd3c134ac93302fc4dd588e83f1e1985b75749 Mon Sep 17 00:00:00 2001 From: Rodolphe Stoclin Date: Wed, 2 Sep 2026 15:44:21 +0200 Subject: [PATCH] fix(ci): build all workspace deps before bundling the action The v11.0.0 action release failed: release-action.yml built only utils and core, but packages/action bundles 7 workspace packages, so bun build could not resolve @node-minify/benchmark. error: Could not resolve: "@node-minify/benchmark" at packages/action/src/benchmark.ts:8:27 Use the root build script, which already builds utils first, then everything except the action in parallel, then the action last. Verified from a clean packages/action/dist that the bundle is produced and resolves benchmark. --- .github/workflows/release-action.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-action.yml b/.github/workflows/release-action.yml index 3154a7cb1..a4d58cd5e 100644 --- a/.github/workflows/release-action.yml +++ b/.github/workflows/release-action.yml @@ -60,14 +60,11 @@ jobs: - name: Install dependencies run: bun install --frozen-lockfile - - name: Build dependencies - run: | - bun run build:deps - bun run --filter '@node-minify/core' build - + # The action bundles 7 workspace packages (benchmark, core, esbuild, oxc, + # swc, terser, utils), so build the whole workspace. The root script + # already orders utils first and the action last. - name: Build action run: bun run build - working-directory: packages/action - name: Get version id: version