From 7eeea37b7a1a7f3793e6826a2bce8ef380d235c2 Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Wed, 17 Jun 2026 14:35:12 +0200 Subject: [PATCH] ci(e2e): retry npm install to absorb Prisma postinstall ECONNRESET --- .github/actions/setup-e2e/action.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-e2e/action.yml b/.github/actions/setup-e2e/action.yml index 4f725b2965..51f6bd48bd 100644 --- a/.github/actions/setup-e2e/action.yml +++ b/.github/actions/setup-e2e/action.yml @@ -27,9 +27,15 @@ runs: restore-keys: | ${{ runner.os }}-node22- + # npm i runs Prisma's postinstall, which downloads engine binaries from a + # CDN; a transient ECONNRESET there fails the whole job. Retry to absorb it. - name: Install npm Packages - shell: bash - run: npm i + uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3 + with: + timeout_minutes: 10 + max_attempts: 3 + retry_wait_seconds: 20 + command: npm i - name: Cache Playwright Browsers uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5