Skip to content

ci: Read the Playwright version from package.json in install-playwright - #25380

Merged
mydea merged 1 commit into
ci/e2e-run-all-on-ci-changesfrom
ci/install-playwright-from-package-json
Oct 15, 2026
Merged

mydea merged 1 commit into
ci/e2e-run-all-on-ci-changesfrom
ci/install-playwright-from-package-json

Conversation

@mydea

@mydea mydea commented Oct 15, 2026

Copy link
Copy Markdown
Member

The install-playwright action resolved the version from the installed @playwright/test in node_modules. In E2E jobs that is only available after the app's build, so the jobs installed the root's version in the background and then ran the action a second time, in case the app used a different one.

The action now requires a cwd and reads @playwright/test from <cwd>/package.json. That works before any dependencies are installed, and each caller always gets the version it actually uses. E2E jobs point it at the checked-out app and install once. Directories without @playwright/test install nothing.

The version is the declared range with its ~/^ prefix stripped. A follow-up PR pins exact versions so this is always the version that gets installed.

🤖 Generated with Claude Code

The action now requires a `cwd` and reads the `@playwright/test` version from
its package.json instead of resolving it from node_modules. This makes it
independent of installed dependencies, so E2E jobs install the app's own
version up front and no longer need a second install after the app build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mydea
mydea force-pushed the ci/install-playwright-from-package-json branch from 280993e to 58e768f Compare October 15, 2026 11:35
@mydea
mydea removed this pull request from stack #25385 October 15, 2026 11:37
@mydea
mydea changed the base branch from develop to ci/e2e-run-all-on-ci-changes October 15, 2026 11:37
@mydea
mydea added this pull request to stack #25392 October 15, 2026 11:37
@mydea
mydea marked this pull request as ready for review October 15, 2026 11:53
@mydea
mydea requested review from JPeer264 and s1gr1d October 15, 2026 11:53
@mydea
mydea removed this pull request from stack #25392 October 15, 2026 11:58
@mydea
mydea added this pull request to stack #25397 October 15, 2026 11:58
@mydea
mydea removed this pull request from stack #25397 October 15, 2026 12:51
@mydea
mydea added this pull request to stack #25401 October 15, 2026 12:52
@mydea
mydea removed this pull request from stack #25401 October 15, 2026 12:55
@mydea
mydea added this pull request to stack #25405 October 15, 2026 12:55
@mydea
mydea merged commit 5ba9123 into develop Oct 15, 2026
393 of 396 checks passed
@mydea
mydea deleted the ci/install-playwright-from-package-json branch October 15, 2026 14:18
mydea added a commit that referenced this pull request Oct 15, 2026
Ten E2E apps still declared `@playwright/test@~1.56.0`, while the root
and all other apps use `~1.63.0`:
- `bun-express`
- `cloudflare-workers-send-to-sentry`
- `node-eve`
- `node-fastify-6`
- `node-flue`
- `node-mastra`
- `node-prisma-8`
- `remix-v3`
- `tanstackstart-react-static`
- `vue-3-static`

No app is ahead of the root, and nothing in these apps references 1.56
specifically. Aligning them gets every job onto one cached set of
browsers, and prepares for pinning exact versions and checking for drift
in follow-up PRs.

Stacked on #25380.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants