Update workflow pins and migrate Node matrices to modern versions (#1583)
Some checks failed
Basic validation / Basic validation (push) Failing after 0s
Check dist / Check dist/ (push) Failing after 0s
CodeQL analysis / CodeQL analysis (push) Failing after 0s
e2e-cache / Test npm (Node 22, ubuntu-latest) (push) Successful in 10m18s
e2e-cache / Test npm (Node 24, ubuntu-latest) (push) Successful in 10m14s
e2e-cache / Test npm (Node 26, ubuntu-latest) (push) Failing after 6m3s
e2e-cache / Test pnpm (Node 22, ubuntu-latest) (push) Failing after 5m40s
e2e-cache / Test pnpm (Node 24, ubuntu-latest) (push) Failing after 6m25s
e2e-cache / Test pnpm (Node 26, ubuntu-latest) (push) Failing after 1m36s
e2e-cache / Test yarn 1 (Node 22, ubuntu-latest) (push) Failing after 17m5s
e2e-cache / Test yarn 1 (Node 24, ubuntu-latest) (push) Failing after 14s
e2e-cache / Test yarn 1 (Node 26, ubuntu-latest) (push) Failing after 9s
e2e-cache / Test yarn 3 (Node 22, ubuntu-latest) (push) Failing after 10s
e2e-cache / Test yarn 3 (Node 24, ubuntu-latest) (push) Failing after 9s
e2e-cache / Test yarn 3 (Node 26, ubuntu-latest) (push) Failing after 10s
e2e-cache / Test yarn subprojects (22) (push) Failing after 9s
e2e-cache / Test yarn subprojects (24) (push) Failing after 9s
e2e-cache / Test yarn subprojects (26) (push) Failing after 9s
e2e-cache / Test yarn subprojects all locally managed (22) (push) Failing after 10s
e2e-cache / Test yarn subprojects all locally managed (24) (push) Failing after 10s
e2e-cache / Test yarn subprojects all locally managed (26) (push) Failing after 10s
e2e-cache / Test yarn subprojects some locally managed (22) (push) Failing after 11s
e2e-cache / Test yarn subprojects some locally managed (24) (push) Failing after 9s
e2e-cache / Test yarn subprojects some locally managed (26) (push) Failing after 9s
e2e-cache / Test yarn subprojects managed by git (22) (push) Failing after 10s
e2e-cache / Test yarn subprojects managed by git (24) (push) Failing after 10s
e2e-cache / Test yarn subprojects managed by git (26) (push) Failing after 10s
e2e-cache / Test auto cache with top-level packageManager (22, ubuntu-latest) (push) Successful in 9m37s
e2e-cache / Test auto cache with top-level packageManager (24, ubuntu-latest) (push) Successful in 9m40s
e2e-cache / Test auto cache with top-level packageManager (26, ubuntu-latest) (push) Successful in 9m40s
e2e-cache / Test auto cache with devEngines.packageManager (22, ubuntu-latest) (push) Successful in 9m43s
e2e-cache / Test auto cache with devEngines.packageManager (24, ubuntu-latest) (push) Successful in 9m41s
e2e-cache / Test auto cache with devEngines.packageManager (26, ubuntu-latest) (push) Successful in 9m41s
Licensed / Licensed (push) Failing after 0s
proxy / test-proxy (push) Failing after 10s
proxy / test-bypass-proxy (push) Failing after 56s
versions / local-cache (22, ubuntu-latest) (push) Successful in 26s
versions / local-cache (24, ubuntu-latest) (push) Successful in 24s
versions / local-cache (26, ubuntu-latest) (push) Successful in 26s
versions / lts-syntax (lts/*, ubuntu-latest) (push) Failing after 20s
versions / lts-syntax (lts/-1, ubuntu-latest) (push) Failing after 19s
versions / v8-canary-syntax (26-v8-canary, ubuntu-latest) (push) Successful in 49s
versions / v8-canary-syntax (26.0.0-v8-canary, ubuntu-latest) (push) Successful in 24s
versions / v8-canary-syntax (26.0.0-v8-canary20251016054584e5cf, ubuntu-latest) (push) Successful in 36s
versions / nightly-syntax (24.0.0-nightly, ubuntu-latest) (push) Successful in 42s
versions / nightly-syntax (25-nightly, ubuntu-latest) (push) Successful in 24s
versions / nightly-syntax (26-nightly, ubuntu-latest) (push) Successful in 37s
versions / rc-syntax (22.14.0-rc.1, ubuntu-latest) (push) Successful in 23s
versions / rc-syntax (24.0.0-rc.4, ubuntu-latest) (push) Successful in 18s
versions / rc-syntax (26.0.0-rc.1, ubuntu-latest) (push) Successful in 36s
versions / manifest (22.0.0, ubuntu-latest) (push) Successful in 59s
versions / manifest (24.9.0, ubuntu-latest) (push) Successful in 29s
versions / manifest (26.5.0, ubuntu-latest) (push) Successful in 19s
versions / check-latest (22, ubuntu-latest) (push) Successful in 29s
versions / check-latest (24, ubuntu-latest) (push) Successful in 27s
versions / check-latest (26, ubuntu-latest) (push) Successful in 28s
versions / version-file (.nvmrc, ubuntu-latest) (push) Successful in 19s
versions / version-file (.tool-versions, ubuntu-latest) (push) Successful in 18s
versions / version-file (.tool-versions-node, ubuntu-latest) (push) Successful in 17s
versions / version-file (package.json, ubuntu-latest) (push) Successful in 18s
versions / version-file-dev-engines (ubuntu-latest) (push) Successful in 20s
versions / version-file-volta (ubuntu-latest) (push) Successful in 21s
versions / version-file-volta-extends (ubuntu-latest) (push) Successful in 19s
versions / node-dist (21, ubuntu-latest) (push) Successful in 27s
versions / node-dist (23, ubuntu-latest) (push) Successful in 1m21s
versions / old-versions (ubuntu-latest) (push) Failing after 17m13s
versions / node-latest-aliases (current, ubuntu-latest) (push) Successful in 26s
versions / node-latest-aliases (latest, ubuntu-latest) (push) Successful in 23s
versions / node-latest-aliases (node, ubuntu-latest) (push) Successful in 23s
e2e-cache / Test npm (Node 22, macos-15-intel) (push) Has been cancelled
e2e-cache / Test npm (Node 22, macos-latest) (push) Has been cancelled
e2e-cache / Test npm (Node 22, windows-latest) (push) Has been cancelled
e2e-cache / Test npm (Node 24, macos-15-intel) (push) Has been cancelled
e2e-cache / Test npm (Node 24, macos-latest) (push) Has been cancelled
e2e-cache / Test npm (Node 24, windows-latest) (push) Has been cancelled
e2e-cache / Test npm (Node 26, macos-15-intel) (push) Has been cancelled
e2e-cache / Test npm (Node 26, macos-latest) (push) Has been cancelled
e2e-cache / Test npm (Node 26, windows-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node 22, macos-15-intel) (push) Has been cancelled
e2e-cache / Test pnpm (Node 22, macos-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node 22, windows-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node 24, macos-15-intel) (push) Has been cancelled
e2e-cache / Test pnpm (Node 24, macos-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node 24, windows-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node 26, macos-15-intel) (push) Has been cancelled
e2e-cache / Test pnpm (Node 26, macos-latest) (push) Has been cancelled
e2e-cache / Test pnpm (Node 26, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 22, macos-15-intel) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 22, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 22, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 24, macos-15-intel) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 24, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 24, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 26, macos-15-intel) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 26, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 1 (Node 26, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 22, macos-15-intel) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 22, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 22, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 24, macos-15-intel) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 24, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 24, windows-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 26, macos-15-intel) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 26, macos-latest) (push) Has been cancelled
e2e-cache / Test yarn 3 (Node 26, windows-latest) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (22, macos-15-intel) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (22, macos-latest) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (22, windows-latest) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (24, macos-15-intel) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (24, macos-latest) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (24, windows-latest) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (26, macos-15-intel) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (26, macos-latest) (push) Has been cancelled
e2e-cache / Test auto cache with top-level packageManager (26, windows-latest) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (22, macos-15-intel) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (22, macos-latest) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (22, windows-latest) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (24, macos-15-intel) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (24, macos-latest) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (24, windows-latest) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (26, macos-15-intel) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (26, macos-latest) (push) Has been cancelled
e2e-cache / Test auto cache with devEngines.packageManager (26, windows-latest) (push) Has been cancelled
versions / local-cache (22, macos-15-intel) (push) Has been cancelled
versions / local-cache (22, macos-latest) (push) Has been cancelled
versions / local-cache (22, windows-latest) (push) Has been cancelled
versions / local-cache (24, macos-15-intel) (push) Has been cancelled
versions / local-cache (24, macos-latest) (push) Has been cancelled
versions / local-cache (24, windows-latest) (push) Has been cancelled
versions / local-cache (26, macos-15-intel) (push) Has been cancelled
versions / local-cache (26, macos-latest) (push) Has been cancelled
versions / local-cache (26, windows-latest) (push) Has been cancelled
versions / lts-syntax (lts/*, macos-15-intel) (push) Has been cancelled
versions / lts-syntax (lts/*, windows-latest) (push) Has been cancelled
versions / lts-syntax (lts/-1, macos-15-intel) (push) Has been cancelled
versions / lts-syntax (lts/-1, windows-latest) (push) Has been cancelled
versions / v8-canary-syntax (26-v8-canary, macos-15-intel) (push) Has been cancelled
versions / v8-canary-syntax (26-v8-canary, macos-latest) (push) Has been cancelled
versions / v8-canary-syntax (26-v8-canary, windows-latest) (push) Has been cancelled
versions / v8-canary-syntax (26.0.0-v8-canary, macos-15-intel) (push) Has been cancelled
versions / v8-canary-syntax (26.0.0-v8-canary, macos-latest) (push) Has been cancelled
versions / v8-canary-syntax (26.0.0-v8-canary, windows-latest) (push) Has been cancelled
versions / v8-canary-syntax (26.0.0-v8-canary20251016054584e5cf, macos-15-intel) (push) Has been cancelled
versions / v8-canary-syntax (26.0.0-v8-canary20251016054584e5cf, macos-latest) (push) Has been cancelled
versions / v8-canary-syntax (26.0.0-v8-canary20251016054584e5cf, windows-latest) (push) Has been cancelled
versions / nightly-syntax (24.0.0-nightly, macos-15-intel) (push) Has been cancelled
versions / nightly-syntax (24.0.0-nightly, macos-latest) (push) Has been cancelled
versions / nightly-syntax (24.0.0-nightly, windows-latest) (push) Has been cancelled
versions / nightly-syntax (25-nightly, macos-15-intel) (push) Has been cancelled
versions / nightly-syntax (25-nightly, macos-latest) (push) Has been cancelled
versions / nightly-syntax (25-nightly, windows-latest) (push) Has been cancelled
versions / nightly-syntax (26-nightly, macos-15-intel) (push) Has been cancelled
versions / nightly-syntax (26-nightly, macos-latest) (push) Has been cancelled
versions / nightly-syntax (26-nightly, windows-latest) (push) Has been cancelled
versions / rc-syntax (22.14.0-rc.1, macos-15-intel) (push) Has been cancelled
versions / rc-syntax (22.14.0-rc.1, macos-latest) (push) Has been cancelled
versions / rc-syntax (22.14.0-rc.1, windows-latest) (push) Has been cancelled
versions / rc-syntax (24.0.0-rc.4, macos-15-intel) (push) Has been cancelled
versions / rc-syntax (24.0.0-rc.4, macos-latest) (push) Has been cancelled
versions / rc-syntax (24.0.0-rc.4, windows-latest) (push) Has been cancelled
versions / rc-syntax (26.0.0-rc.1, macos-15-intel) (push) Has been cancelled
versions / rc-syntax (26.0.0-rc.1, macos-latest) (push) Has been cancelled
versions / rc-syntax (26.0.0-rc.1, windows-latest) (push) Has been cancelled
versions / manifest (22.0.0, macos-15-intel) (push) Has been cancelled
versions / manifest (22.0.0, macos-latest) (push) Has been cancelled
versions / manifest (22.0.0, windows-latest) (push) Has been cancelled
versions / manifest (24.9.0, macos-15-intel) (push) Has been cancelled
versions / manifest (24.9.0, macos-latest) (push) Has been cancelled
versions / manifest (24.9.0, windows-latest) (push) Has been cancelled
versions / manifest (26.5.0, macos-15-intel) (push) Has been cancelled
versions / manifest (26.5.0, macos-latest) (push) Has been cancelled
versions / manifest (26.5.0, windows-latest) (push) Has been cancelled
versions / check-latest (22, macos-15-intel) (push) Has been cancelled
versions / check-latest (22, macos-latest) (push) Has been cancelled
versions / check-latest (22, windows-latest) (push) Has been cancelled
versions / check-latest (24, macos-15-intel) (push) Has been cancelled
versions / check-latest (24, macos-latest) (push) Has been cancelled
versions / check-latest (24, windows-latest) (push) Has been cancelled
versions / check-latest (26, macos-15-intel) (push) Has been cancelled
versions / check-latest (26, macos-latest) (push) Has been cancelled
versions / check-latest (26, windows-latest) (push) Has been cancelled
versions / version-file (.nvmrc, macos-15-intel) (push) Has been cancelled
versions / version-file (.nvmrc, macos-latest) (push) Has been cancelled
versions / version-file (.nvmrc, windows-latest) (push) Has been cancelled
versions / version-file (.tool-versions, macos-15-intel) (push) Has been cancelled
versions / version-file (.tool-versions, macos-latest) (push) Has been cancelled
versions / version-file (.tool-versions, windows-latest) (push) Has been cancelled
versions / version-file (.tool-versions-node, macos-15-intel) (push) Has been cancelled
versions / version-file (.tool-versions-node, macos-latest) (push) Has been cancelled
versions / version-file (.tool-versions-node, windows-latest) (push) Has been cancelled
versions / version-file (package.json, macos-15-intel) (push) Has been cancelled
versions / version-file (package.json, macos-latest) (push) Has been cancelled
versions / version-file (package.json, windows-latest) (push) Has been cancelled
versions / version-file-dev-engines (macos-latest) (push) Has been cancelled
versions / version-file-dev-engines (windows-latest) (push) Has been cancelled
versions / version-file-volta (macos-15-intel) (push) Has been cancelled
versions / version-file-volta (macos-latest) (push) Has been cancelled
versions / version-file-volta (windows-latest) (push) Has been cancelled
versions / version-file-volta-extends (macos-15-intel) (push) Has been cancelled
versions / version-file-volta-extends (macos-latest) (push) Has been cancelled
versions / version-file-volta-extends (windows-latest) (push) Has been cancelled
versions / node-dist (21, macos-15-intel) (push) Has been cancelled
versions / node-dist (21, macos-latest) (push) Has been cancelled
versions / node-dist (21, windows-latest) (push) Has been cancelled
versions / node-dist (23, macos-15-intel) (push) Has been cancelled
versions / node-dist (23, macos-latest) (push) Has been cancelled
versions / node-dist (23, windows-latest) (push) Has been cancelled
versions / old-versions (macos-15-intel) (push) Has been cancelled
versions / old-versions (windows-latest) (push) Has been cancelled
versions / arch (push) Has been cancelled
versions / node-latest-aliases (current, macos-15-intel) (push) Has been cancelled
versions / node-latest-aliases (current, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (current, windows-latest) (push) Has been cancelled
versions / node-latest-aliases (latest, macos-15-intel) (push) Has been cancelled
versions / node-latest-aliases (latest, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (latest, windows-latest) (push) Has been cancelled
versions / node-latest-aliases (node, macos-15-intel) (push) Has been cancelled
versions / node-latest-aliases (node, macos-latest) (push) Has been cancelled
versions / node-latest-aliases (node, windows-latest) (push) Has been cancelled

* 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

View File

@@ -46,7 +46,7 @@ To run without a lockfile:
```yaml
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24'
package-manager-cache: false # Explicitly disable caching if you don't have a lockfile
@@ -65,7 +65,7 @@ If `check-latest` is set to `true`, the action first checks if the cached versio
```yaml
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24'
check-latest: true
@@ -84,7 +84,7 @@ See [supported version syntax](https://github.com/actions/setup-node#supported-v
```yaml
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version-file: '.nvmrc'
package-manager-cache: false # Disable automatic npm caching if not required
@@ -129,7 +129,7 @@ jobs:
name: Node sample
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24'
architecture: 'x64' # optional, x64 or x86. If not specified, x64 will be used by default
@@ -151,7 +151,7 @@ jobs:
name: Node sample
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24.0.0-v8-canary' # it will install the latest v8 canary release for node 24.0.0
package-manager-cache: false # Disable automatic npm caching if not required
@@ -167,7 +167,7 @@ jobs:
name: Node sample
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24-v8-canary' # it will install the latest v8 canary release for node 24
package-manager-cache: false # Disable automatic npm caching if not required
@@ -184,7 +184,7 @@ jobs:
name: Node sample
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: 'v24.0.0-v8-canary2025030537242e55ac'
package-manager-cache: false # Disable automatic npm caching if not required
@@ -205,7 +205,7 @@ jobs:
name: Node sample
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24-nightly' # it will install the latest nightly release for node 24
package-manager-cache: false # Disable automatic npm caching if not required
@@ -222,7 +222,7 @@ jobs:
name: Node sample
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24.0.0-nightly' # it will install the latest nightly release for node 24.0.0
package-manager-cache: false # Disable automatic npm caching if not required
@@ -239,7 +239,7 @@ jobs:
name: Node sample
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24.0.0-nightly202505066102159fa1'
package-manager-cache: false # Disable automatic npm caching if not required
@@ -258,7 +258,7 @@ jobs:
name: Node sample
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24.0.0-rc.4'
package-manager-cache: false # Disable automatic npm caching if not required
@@ -277,7 +277,7 @@ Yarn caching handles both Yarn Classic (v1) and Yarn Berry (v2, v3, v4+).
```yaml
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24'
cache: 'yarn'
@@ -296,10 +296,10 @@ steps:
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v6
with:
version: 10
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24'
cache: 'pnpm'
@@ -315,7 +315,7 @@ steps:
```yaml
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24'
cache: 'npm'
@@ -328,7 +328,7 @@ steps:
```yaml
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24'
cache: 'npm'
@@ -351,7 +351,7 @@ steps:
# version: 10
- name: Setup Node.js
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
@@ -397,9 +397,9 @@ jobs:
- macos-latest
- windows-latest
node_version:
- 20
- 22
- 24
- 26
architecture:
- x64
# an extra windows-x86 run:
@@ -411,7 +411,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_version }}
architecture: ${{ matrix.architecture }}
@@ -424,7 +424,7 @@ jobs:
```yaml
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
@@ -433,7 +433,7 @@ steps:
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
registry-url: 'https://npm.pkg.github.com'
package-manager-cache: false # Disable automatic npm dependency caching to reduce cache poisoning risk
@@ -446,7 +446,7 @@ steps:
```yaml
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24.x'
registry-url: <registry url>
@@ -455,7 +455,7 @@ steps:
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.YARN_TOKEN }}
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
registry-url: 'https://npm.pkg.github.com'
package-manager-cache: false # Disable automatic npm dependency caching to reduce cache poisoning risk
@@ -468,7 +468,7 @@ steps:
```yaml
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
@@ -489,7 +489,7 @@ Below you can find a sample "Setup .yarnrc.yml" step, that is going to allow you
```yaml
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24.x'
package-manager-cache: false # Disable automatic npm dependency caching to reduce cache poisoning risk
@@ -535,7 +535,7 @@ You must also configure a **Trusted Publisher** in npm for your package/scope th
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
@@ -558,7 +558,7 @@ It is possible to specify a token to authenticate with the mirror using the `mir
The token will be passed in the `Authorization` header.
```yaml
- uses: actions/setup-node@v6
- uses: actions/setup-node@v7
with:
node-version: '24.x'
mirror: 'https://nodejs.org/dist'