From 53a3fd929ad9a8d16c2de72cdf614f6525a04bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Sun, 22 Oct 2023 23:23:36 +0200 Subject: [PATCH] Fixed CI outputting multiple playwright versions --- .github/workflows/CI.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d8a8763e..51999ee7 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -115,8 +115,8 @@ jobs: - name: Get installed Playwright version id: playwright-version run: | - echo "version=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//')" - echo "version=$(npm ls @playwright/test | grep @playwright | sed 's/.*@//')" >> $GITHUB_OUTPUT + echo "version=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" + echo "version=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_OUTPUT - name: Cache playwright binaries id: playwright-cache