Skip to content

Commit c28e63f

Browse files
authored
Fix playwright version reading in CI
1 parent eb050da commit c28e63f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/playwright.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- name: Get Playwright version for caching browser executables
2121
id: playwright-version
22-
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').devDependencies['@playwright/test'].version)")" >> $GITHUB_ENV
22+
run: echo "PLAYWRIGHT_VERSION=$(jq -r '.devDependencies.playwright' package.json)" >> $GITHUB_ENV
2323
- name: Cache playwright binaries
2424
uses: actions/cache@v4
2525
id: playwright-cache

0 commit comments

Comments
 (0)