From a45e7fb76e610e132820fab622ff48a2fbcf15e3 Mon Sep 17 00:00:00 2001
From: Michael Kriese <michael.kriese@visualon.de>
Date: Tue, 2 May 2023 12:27:11 +0200
Subject: [PATCH] ci: retry yarn install 3 times (#21916)

---
 .github/workflows/build.yml       | 6 +++++-
 .github/workflows/release-npm.yml | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b0b1ab49ca..ddffdc9360 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -77,7 +77,11 @@ jobs:
           echo "Yarn $(yarn --version)"
 
       - name: Installing dependencies
-        run: yarn install --frozen-lockfile
+        uses: nick-fields/retry@v2.8.3
+        with:
+          timeout_minutes: 10
+          max_attempts: 3
+          command: yarn install --frozen-lockfile
 
       # build before tests to for static file check
       - name: Build
diff --git a/.github/workflows/release-npm.yml b/.github/workflows/release-npm.yml
index f8f32c34c6..8b75229119 100644
--- a/.github/workflows/release-npm.yml
+++ b/.github/workflows/release-npm.yml
@@ -58,7 +58,11 @@ jobs:
           yarn config set version-git-tag false
 
       - name: Installing dependencies
-        run: yarn install --frozen-lockfile
+        uses: nick-fields/retry@v2.8.3
+        with:
+          timeout_minutes: 10
+          max_attempts: 3
+          command: yarn install --frozen-lockfile
 
       - name: Build ${{ env.NPM_VERSION }}
         run: yarn build
-- 
GitLab