You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Development workflows for the playwright-cli repository. Use when the user asks about rolling dependencies, releasing, or other repo maintenance tasks.
1.**Update Playwright packages** in `package.json`:
6
+
- Update `playwright` (dependency) and `@playwright/test` (devDependency) to the target version.
7
+
- Run `npm install` to update `package-lock.json`.
8
+
9
+
2.**Run the update script** to sync skills and README:
10
+
```bash
11
+
node scripts/update.js
12
+
```
13
+
This script:
14
+
- Runs `node playwright-cli.js install --skills` to regenerate skills from the new Playwright version.
15
+
- Copies the generated skills from `.claude/skills/playwright-cli/` into `skills/playwright-cli/`.
16
+
- Cleans up the generated `.claude/skills/` directory.
17
+
18
+
3.**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).
19
+
20
+
4.**Verify** the CLI works:
21
+
```bash
22
+
node playwright-cli.js --help
23
+
```
24
+
25
+
5.**Test** the CLI:
26
+
```bash
27
+
npm run test
28
+
```
29
+
30
+
5.**Create a branch and commit**:
31
+
- Branch name: `roll_<version>` (e.g. `roll_214`)
32
+
- Commit message: `chore: roll Playwright to <version>`
33
+
34
+
## Key files
35
+
36
+
| File | Role |
37
+
|---|---|
38
+
|`package.json`| Playwright version pins (`playwright`, `@playwright/test`) |
39
+
|`playwright-cli.js`| CLI entry point — requires Playwright's program module |
40
+
|`scripts/update.js`| Automation script for syncing skills and README after version bump |
41
+
|`skills/playwright-cli/SKILL.md`| Skill definition installed from Playwright (source of truth for commands) |
42
+
|`README.md`| User-facing docs — must reflect current skill commands and behavior |
0 commit comments