From 9b56cfd5eecf32c6f5db069429d8936bff41fd4b Mon Sep 17 00:00:00 2001 From: John Ajera <37360952+jajera@users.noreply.github.com> Date: Tue, 26 Aug 2025 12:27:37 +0000 Subject: [PATCH] fix: handle gha deploy error fixs the error when merging the pr --- .github/workflows/deploy.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8556133..6e4dacf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,10 +31,17 @@ jobs: cache: 'npm' cache-dependency-path: 'src/package-lock.json' + - name: Configure npm + run: | + npm config set registry https://registry.npmjs.org/ + npm config set fetch-retries 3 + npm config set fetch-retry-mintimeout 5000 + npm config set fetch-retry-maxtimeout 60000 + - name: Install dependencies run: | cd src - npm ci + npm install --no-audit --no-fund - name: Run tests run: | @@ -79,10 +86,17 @@ jobs: cache: 'npm' cache-dependency-path: 'src/package-lock.json' + - name: Configure npm + run: | + npm config set registry https://registry.npmjs.org/ + npm config set fetch-retries 3 + npm config set fetch-retry-mintimeout 5000 + npm config set fetch-retry-maxtimeout 60000 + - name: Install dependencies run: | cd src - npm ci + npm install --no-audit --no-fund - name: Build function run: |