From 55bbf76fd3f8bcf72b3122c3e4c6e9b161bf85bd Mon Sep 17 00:00:00 2001 From: Aditya Agarwal Date: Wed, 11 Mar 2026 12:26:41 +0100 Subject: [PATCH] fix(ci): split install and build to prevent yarn lifecycle script hang yarn install without --ignore-scripts runs the prepare lifecycle script which triggers the build. This hangs indefinitely in CI (but not locally). Split into two steps: 1. yarn install --ignore-scripts (dependencies only) 2. yarn run build (explicit build step) --- .github/actions/setup-node/action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml index 121dfc46..1b27bdbd 100644 --- a/.github/actions/setup-node/action.yml +++ b/.github/actions/setup-node/action.yml @@ -22,6 +22,10 @@ runs: key: ${{ runner.os }}-${{ inputs.node-version }}-modules-${{ hashFiles('**/yarn.lock') }} restore-keys: ${{ runner.os }}-${{ inputs.node-version }}-modules- - - name: Install Dependencies & Build - run: yarn install --frozen-lockfile --ignore-engines + - name: Install Dependencies + run: yarn install --frozen-lockfile --ignore-engines --ignore-scripts + shell: bash + + - name: Build + run: yarn run build shell: bash