From 86db69d07a074a5b431ab133173afca8424dd67b Mon Sep 17 00:00:00 2001 From: Diego Aquino Date: Mon, 19 Aug 2024 17:40:38 -0300 Subject: [PATCH] fix(ci): wait until version is installable before tests --- .github/workflows/release-npm.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-npm.yaml b/.github/workflows/release-npm.yaml index 9c2d8792..db1a9a29 100644 --- a/.github/workflows/release-npm.yaml +++ b/.github/workflows/release-npm.yaml @@ -70,15 +70,20 @@ jobs: timeout 60s bash -c ' until pnpm view zimic versions --json | grep --quiet "${{ steps.zimic-version.outputs.value }}"; do - echo "zimic@${{ steps.zimic-version.outputs.value }} is not available on NPM yet..." + echo "zimic@${{ steps.zimic-version.outputs.value }} is not yet available on NPM..." sleep 5 - echo "Checking if zimic@${{ steps.zimic-version.outputs.value }} is available on NPM..." + echo "Checking again..." done ' echo "zimic@${{ steps.zimic-version.outputs.value }} is now available on NPM!" - pnpm install --no-frozen-lockfile + timeout 180s bash -c ' + until pnpm install --no-frozen-lockfile; do + sleep 5 + echo "Retrying..." + done + ' pnpm turbo \ types:check lint:turbo \