microsoft / playwright-cli
dev
Development workflows for the playwright-cli repository, including rolling Playwright dependencies and preparing releases.
Install
npx skills add https://github.com/microsoft/playwright-cli --skill devHow to roll Playwright dependency
Steps
- Obtain latest Playwright version
npm info playwright@next version -
Update Playwright packages in
package.json:- Update
playwrightandplaywright-core(dependencies) and@playwright/test(devDependency) to the target version. - Run
npm installto updatepackage-lock.json. - Verify with
npm ls playwright-corethat the rootplaywright-coreactually rolled — it is pinned directly inpackage.jsonand is whatplaywright-cli.jsruns; forgetting it leaves the CLI on the old version while tests pass against the new@playwright/test.
- Update
-
Run the update script to sync skills and README:
This script:
- Runs
node playwright-cli.js install --skillsto regenerate skills from the new Playwright version. - Copies the generated skills from
.claude/skills/playwright-cli/intoskills/playwright-cli/. - Cleans up the generated
.claude/skills/directory.
- Runs
- Update README.md with relevant changes from the updated skill at
skills/playwright-cli/SKILL.md. Compare the skill file with the README and update any sections that are out of date (commands, flags, default behaviors, examples). -
Verify the CLI works:
-
Test the CLI:
-
Create a branch and commit:
- Branch name:
roll_<version>(e.g.roll_214) - Commit message:
chore: roll Playwright to <version> - do not add Co-Authored-By
- Branch name: