From 241280275e78ca9fdc630ff8b9e90ae4d7aa894e Mon Sep 17 00:00:00 2001 From: rory Date: Thu, 18 Jul 2024 10:57:48 -0400 Subject: [PATCH] Add retry for npm install in reassure --- .github/workflows/reassurePerformanceTests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reassurePerformanceTests.yml b/.github/workflows/reassurePerformanceTests.yml index a2aadc331f19f..a0489a52711bb 100644 --- a/.github/workflows/reassurePerformanceTests.yml +++ b/.github/workflows/reassurePerformanceTests.yml @@ -47,12 +47,12 @@ jobs: BASELINE_BRANCH=${BASELINE_BRANCH:="main"} git fetch origin "$BASELINE_BRANCH" --no-tags --depth=1 git switch "$BASELINE_BRANCH" - npm install --force + npm install --force || (rm -rf node_modules && npm install --force) NODE_OPTIONS=--experimental-vm-modules npx reassure --baseline git switch --force --detach - git merge --no-commit --allow-unrelated-histories "$BASELINE_BRANCH" -X ours git checkout --ours . - npm install --force + npm install --force || (rm -rf node_modules && npm install --force) NODE_OPTIONS=--experimental-vm-modules npx reassure --branch - name: Validate output.json