Skip to content

Commit

Permalink
Document how to upgrade Node
Browse files Browse the repository at this point in the history
  • Loading branch information
markhobson committed Jan 14, 2025
1 parent dec3ec4 commit 70738a5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,36 @@ After upgrading Playwright to a new minor version, reinstall the browsers and th
playwright install --with-deps chromium
```

## Upgrading Node

To upgrade Node:

1. Update Node to the [latest LTS version](https://nodejs.org/en/download) in [package.json](../package.json):

```json
"engines": {
"node": "<version>",
...
}
```

1. Update the [lock file](../package-lock.json):

```bash
npm install --package-lock-only
```

1. Update the Node version in the [CI workflow](../.github/workflows/ci.yml):

```yml
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: <version>
```
1. Update the Node version in the [README](../README.md) prerequisites
## Upgrading Node packages
To list Node packages that need upgrading:
Expand Down

0 comments on commit 70738a5

Please sign in to comment.