Skip to content

fix: suppress pnpm status output in setup-playwright version check#56

Merged
unional merged 1 commit into
mainfrom
fix/setup-playwright-pnpm11
May 20, 2026
Merged

fix: suppress pnpm status output in setup-playwright version check#56
unional merged 1 commit into
mainfrom
fix/setup-playwright-pnpm11

Conversation

@unional

@unional unional commented May 20, 2026

Copy link
Copy Markdown
Owner

Problem

In pnpm 11, pnpm exec playwright --version prints a deps-status header to stdout before running the binary:

Already up to date
Done in 47ms using pnpm v11.1.3

The version regex [0-9]+(\.[0-9]+)+ matched 11.1.3 (the pnpm version), causing the action to believe playwright was installed in projects where it isn't. The subsequent browser install step then failed with:

[ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL] Command "playwright" not found

Fix

Add --silent to suppress pnpm's own output, so only the playwright binary's output reaches the grep.

Test plan

  • CI passes on repos without playwright (should skip setup)
  • CI passes on repos with playwright (should install browsers)

…ersion check

pnpm 11 prints a deps-status header to stdout before running the binary:
  'Already up to date\nDone in 47ms using pnpm v11.1.3'
The version regex matched '11.1.3' from that header, making the action
think playwright was installed when it was not, then failing on the
browser install step.

--silent suppresses pnpm's own output so only the playwright binary's
output is captured.
@changeset-bot

changeset-bot Bot commented May 20, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8baafea

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

@unional unional merged commit 9b25245 into main May 20, 2026
3 checks passed
@unional unional deleted the fix/setup-playwright-pnpm11 branch May 20, 2026 08:19
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.

1 participant