Skip to content

Commit 6edea24

Browse files
fix: install Playwright globally in CI without changing lockfile
- Revert root package.json dependency changes to avoid lockfile conflicts - Update CI workflow to install Playwright globally via npm install -g - Ensure Playwright browsers are available for all projects without lockfile changes - Maintain CI compatibility while providing Playwright support This approach avoids the frozen-lockfile error in CI while ensuring Playwright is available for all projects that need it. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 0d35c77 commit 6edea24

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/on-pull-request.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,15 @@ jobs:
264264
npx cypress verify || true
265265
fi
266266
267-
- name: Install Playwright browsers for all projects
267+
- name: Install Playwright browsers for projects that use it
268268
run: |
269-
echo "Installing Playwright browsers for all projects..."
269+
echo "Installing Playwright browsers for projects that use it..."
270+
271+
# Install Playwright package first if not already available
272+
if ! command -v playwright &> /dev/null; then
273+
echo "Installing Playwright package..."
274+
npm install -g playwright@^1.54.2
275+
fi
270276
271277
# Check if we need to install Playwright browsers
272278
if [ ! -d "$HOME/.cache/ms-playwright" ] || [ -z "$(ls -A $HOME/.cache/ms-playwright 2>/dev/null)" ]; then

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@
175175
]
176176
},
177177
"devDependencies": {
178-
"@playwright/test": "^1.54.2",
179178
"@shelex/cypress-allure-plugin": "2.40.2",
180179
"@types/node": "20.9.0",
181180
"abbrev": "2.0.0",
@@ -195,7 +194,6 @@
195194
"lerna": "8.1.8",
196195
"lint-staged": "^15.2.10",
197196
"mocha": "10.6.0",
198-
"playwright": "^1.54.2",
199197
"prettier": "3.3.3",
200198
"pretty-quick": "4.0.0",
201199
"semver": "7.6.3",

0 commit comments

Comments
 (0)