From cf3e15b107dac2341eee7cb338777d3f18f35a53 Mon Sep 17 00:00:00 2001 From: rajashish147 Date: Fri, 3 Apr 2026 18:30:53 +0530 Subject: [PATCH] feat(ci): update Node.js version to 24 and enhance npm ci with retry logic --- .github/workflows/deploy.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a71b69c..9d046c3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -129,6 +129,22 @@ jobs: ref: ${{ needs.codeql-gate.outputs.deploy_sha }} - name: Setup Node.js 24 + uses: actions/setup-node@v5 + with: + node-version: '24' + cache: npm + cache-dependency-path: package-lock.json + + - name: Install dependencies (with retry) + run: | + echo "::group::npm ci" + for attempt in 1 2 3; do + npm ci && break + [ $attempt -eq 3 ] && { echo "::error::npm ci failed after 3 attempts"; exit 1; } + echo "Attempt $attempt failed — retrying in 15s..." + sleep 15 + done + echo "::endgroup::" - name: TypeScript check run: npm run typecheck