Skip to content

Commit 25b062c

Browse files
authored
Update README.md to update default Node version to 20 (#949)
The README's default example for setting up Node use version 16, which is at end of life. This PR updates those examples to use 20.
1 parent 60edb5d commit 25b062c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The `node-version` input supports the Semantic Versioning Specification, for mor
103103

104104
Examples:
105105

106-
- Major versions: `16`, `18`, `20`
106+
- Major versions: `18`, `20`
107107
- More specific versions: `10.15`, `16.15.1` , `18.4.0`
108108
- NVM LTS syntax: `lts/erbium`, `lts/fermium`, `lts/*`, `lts/-n`
109109
- Latest release: `*` or `latest`/`current`/`node`
@@ -135,7 +135,7 @@ steps:
135135
- uses: actions/checkout@v4
136136
- uses: actions/setup-node@v4
137137
with:
138-
node-version: 16
138+
node-version: 20
139139
cache: 'npm'
140140
- run: npm ci
141141
- run: npm test
@@ -148,7 +148,7 @@ steps:
148148
- uses: actions/checkout@v4
149149
- uses: actions/setup-node@v4
150150
with:
151-
node-version: 16
151+
node-version: 20
152152
cache: 'npm'
153153
cache-dependency-path: subdir/package-lock.json
154154
- run: npm ci
@@ -185,7 +185,7 @@ To get a higher rate limit, you can [generate a personal access token on github.
185185
uses: actions/setup-node@v4
186186
with:
187187
token: ${{ secrets.GH_DOTCOM_TOKEN }}
188-
node-version: 16
188+
node-version: 20
189189
```
190190

191191
If the runner is not able to access github.com, any Nodejs versions requested during a workflow run must come from the runner's tool cache. See "[Setting up the tool cache on self-hosted runners without internet access](https://docs.github.com/en/[email protected]/admin/github-actions/managing-access-to-actions-from-githubcom/setting-up-the-tool-cache-on-self-hosted-runners-without-internet-access)" for more information.

0 commit comments

Comments
 (0)