Closed defunctl closed 1 year ago
Latest commit: e5d78a5b978c9add93bfbe4af0f4474cd4e04bda
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
@bswatson I'm going to merge this one since it fixes the issue, at least for now. Just reach out if we need to adjust it and we'll sort it out.
The problem
Playwright is manually installed as a step during the workflow, but
pnpm-lock.yaml
has a deep dependency of ofplaywright-core
locked at version1.29.1
. However, Playwright's current version is at1.30.0
so whennpx playwright install chromium --with-deps
is run, it installs a newer version and that mismatch causes the job to fail.The Solution
I ended up writing a little bash one-liner to extract the currently locked version of @playwright/test, which is locked to the same playwright-core version.
This outputs
1.29.1
and we simply pass that to the install command.