Skip to content

Commit 4d7ee53

Browse files
committed
Manually capture error code for yarn case
1 parent 3ca0584 commit 4d7ee53

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.diploi/helm/app.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ spec:
4242
- /bin/sh
4343
- -c
4444
- |
45-
if [ -f yarn.lock ]; then yarn --frozen-lockfile || yarn install; \
45+
if [ -f yarn.lock ]; then
46+
yarn --frozen-lockfile
47+
if [ $? -ne 0 ]; then
48+
echo "Retrying yarn install without frozen lockfile"
49+
yarn install
50+
fi
4651
elif [ -f package-lock.json ]; then npm ci || npm i; \
4752
elif [ -f pnpm-lock.yaml ]; then pnpm i --frozen-lockfile || pnpm i; \
4853
elif [ -f package.json ]; then

0 commit comments

Comments
 (0)