1
0
mirror of https://github.com/actions/setup-node.git synced 2026-07-17 05:08:05 +00:00

Update workflow pins and migrate Node matrices to modern versions (#1583)

* Update workflow action pins and move Node 20 to 26

* fix: correct node version in v8-canary and update setup for node 22 x86

* chore: update setup-node action version from v6 to v7 in documentation

* fix: update pnpm/action-setup version to v6 in advanced usage documentation
This commit is contained in:
Haritha
2026-07-16 10:33:56 -05:00
committed by GitHub
parent 05e62e6009
commit 1b7c366466
7 changed files with 107 additions and 107 deletions
+7 -7
View File
@@ -38,7 +38,7 @@ See [action.yml](action.yml)
<!-- start usage -->
```yaml
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
# Version Spec of the version to use in SemVer notation.
# It also admits such aliases as lts/*, latest, nightly and canary builds
@@ -120,7 +120,7 @@ See [action.yml](action.yml)
```yaml
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: 24
package-manager-cache: false # Disable automatic npm caching if not required
@@ -170,7 +170,7 @@ See the examples of using cache for `yarn`/`pnpm` and `cache-dependency-path` in
```yaml
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: 24
cache: 'npm'
@@ -183,7 +183,7 @@ steps:
```yaml
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: 24
cache: 'npm'
@@ -199,7 +199,7 @@ This behavior is controlled by the `package-manager-cache` input, which defaults
```yaml
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
package-manager-cache: false
- run: npm ci
@@ -219,7 +219,7 @@ jobs:
steps:
- uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v6
uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node }}
package-manager-cache: false # Disable automatic npm caching if not required
@@ -234,7 +234,7 @@ jobs:
To get a higher rate limit, you can [generate a personal access token on github.com](https://github.com/settings/tokens/new) and pass it as the `token` input for the action:
```yaml
uses: actions/setup-node@v6
uses: actions/setup-node@v7
with:
token: ${{ secrets.GH_DOTCOM_TOKEN }}
node-version: 24