fix: retry 5 times not 3

This commit is contained in:
Baptiste Augrain
2025-08-13 17:07:15 +02:00
parent 51f1643852
commit e298421027
6 changed files with 10 additions and 8 deletions

View File

@@ -101,7 +101,7 @@ fi
for i in {1..5}; do # try 5 times
npm ci --prefix build && break
if [[ $i == 3 ]]; then
if [[ $i == 5 ]]; then
echo "Npm install failed too many times" >&2
exit 1
fi
@@ -118,7 +118,7 @@ fi
for i in {1..5}; do # try 5 times
npm ci && break
if [[ $i == 3 ]]; then
if [[ $i == 5 ]]; then
echo "Npm install failed too many times" >&2
exit 1
fi