Przeglądaj źródła

Fix Playwright version retrieval in workflow to use devDependencies from package.json

codecalm 6 miesięcy temu
rodzic
commit
417d0bc444
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      .github/workflows/playwright.yml

+ 2 - 2
.github/workflows/playwright.yml

@@ -41,10 +41,10 @@ jobs:
 
 
       - name: Get installed Playwright version
       - name: Get installed Playwright version
         id: playwright-version
         id: playwright-version
-        run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $GITHUB_ENV
+        run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package.json').devDependencies['@playwright/test'])")" >> $GITHUB_ENV
 
 
       - name: Cache playwright binaries
       - name: Cache playwright binaries
-        uses: actions/cache@v3
+        uses: actions/cache@v4
         id: playwright-cache
         id: playwright-cache
         with:
         with:
           path: |
           path: |