SIGN IN SIGN UP

chore: update `node-integration` workflow template to latest actions (#9836)

## Situation

If the GitHub Actions
[.github/workflows/node-integration.yml](https://github.com/npm/cli/blob/latest/.github/workflows/node-integration.yml)
workflow "nodejs integration" is run, it outputs multiple deprecation
warnings, including the text "Node.js 20 is deprecated." and referring
to the blog article [Deprecation of Node 20 on GitHub Actions
runners](https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/)
dated September 19, 2025.

## Change

Update action usage in
[scripts/template-oss/node-integration-yml.hbs](https://github.com/npm/cli/blob/latest/scripts/template-oss/node-integration-yml.hbs)
to latest versions with `runs.using` `node24`:

| BEFORE | AFTER |
|
------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------
|
| [actions/cache@v3](https://github.com/actions/cache/tree/v3) |
[actions/cache@v6](https://github.com/actions/cache/tree/v6) |
|
[actions/download-artifact@v4](https://github.com/actions/download-artifact/tree/v4)
|
[actions/download-artifact@v8](https://github.com/actions/download-artifact/tree/v8)
|
|
[actions/github-script@v6](https://github.com/actions/github-script/tree/v6)
|
[actions/github-script@v9](https://github.com/actions/github-script/tree/v9)
|
|
[actions/upload-artifact@v4](https://github.com/actions/upload-artifact/tree/v4)
|
[actions/upload-artifact@v7](https://github.com/actions/upload-artifact/tree/v7)
|

## Verification

Run workflow `node-integration` with:

nodejs: 26.5.1
npm version: 12.0.2

Confirm that there are no longer deprecation warnings output.

## References

- closes https://github.com/npm/cli/issues/9834
M
Mike McCready committed
4cdcceac047f82571d0ec734e18b87d1d130e042
Parent: bea9066
Committed by GitHub <noreply@github.com> on 8/3/2026, 6:38:08 PM