Enhance caching in setup-node with automatic package manager detection by @priya-kinthali in #1348
This update, introduces automatic caching when a valid packageManager field is present in your package.json. This aims to improve workflow performance and make dependency management more seamless.
To disable this automatic caching, set package-manager-cache: false
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [actions/setup-node](https://github.com/actions/setup-node) | action | major | `v4` → `v7` |
---
### Release Notes
<details>
<summary>actions/setup-node</summary>
### [`v7.1.0`](https://github.com/actions/setup-node/releases/tag/v7.1.0)
[Compare Source](https://github.com/actions/setup-node/compare/v7.0.0...v7.1.0)
##### What's Changed
##### Enhancements:
- Add support for mise.toml file by [@​gperdomor](https://github.com/gperdomor) in [#​1421](https://github.com/actions/setup-node/pull/1421)
- Support absolute paths in node-version-file by [@​v-mahabaleshwars](https://github.com/v-mahabaleshwars) in [#​1633](https://github.com/actions/setup-node/pull/1633)
##### Bug fixes:
- Add Node version validation and manifest fetch retry by [@​v-jitenderpalsingh](https://github.com/v-jitenderpalsingh) in [#​1580](https://github.com/actions/setup-node/pull/1580)
##### Documentation updates:
- README.md: bump actions/checkout to latest version 7 by [@​deining](https://github.com/deining) in [#​1578](https://github.com/actions/setup-node/pull/1578)
- docs: add V7 ESM migration and NODE_AUTH_TOKEN behavior change by [@​v-gowridurgad](https://github.com/v-gowridurgad) in [#​1593](https://github.com/actions/setup-node/pull/1593)
- Fixed cache recommendation syntax by [@​SubJunk](https://github.com/SubJunk) in [#​1603](https://github.com/actions/setup-node/pull/1603)
##### Dependency updates:
- Update workflow pins and migrate Node matrices to modern versions by [@​v-HarithaVattikuti](https://github.com/v-HarithaVattikuti) in [#​1583](https://github.com/actions/setup-node/pull/1583)
- Upgrade [@​actions/cache](https://github.com/actions/cache) to 6.2.0 by [@​philip-gai](https://github.com/philip-gai) in [#​1584](https://github.com/actions/setup-node/pull/1584)
- Pin [@​types/node](https://github.com/types/node) to v24 by [@​v-priyagupta108](https://github.com/v-priyagupta108) in [#​1585](https://github.com/actions/setup-node/pull/1585)
- Override brace-expansion to 5.0.8 by [@​v-priyagupta108](https://github.com/v-priyagupta108) with [@​Copilot](https://github.com/Copilot) in [#​1599](https://github.com/actions/setup-node/pull/1599)
- Upgrade actions/checkout from 7.0.0 to 7.0.1 by [@​dependabot](https://github.com/dependabot) in [#​1598](https://github.com/actions/setup-node/pull/1598)
- Upgrade prettier from 3.8.4 to 3.9.6 by [@​dependabot](https://github.com/dependabot) in [#​1590](https://github.com/actions/setup-node/pull/1590)
- Upgrade [@​vercel/ncc](https://github.com/vercel/ncc) from 0.44.0 to 0.45.0 by [@​dependabot](https://github.com/dependabot) in [#​1610](https://github.com/actions/setup-node/pull/1610)
- Upgrade pnpm/action-setup from 6.0.9 to 6.0.10 by [@​dependabot](https://github.com/dependabot) in [#​1602](https://github.com/actions/setup-node/pull/1602)
- Upgrade baseline-browser-mapping from 2.10.38 to 2.11.22 by [@​dependabot](https://github.com/dependabot) in [#​1629](https://github.com/actions/setup-node/pull/1629)
- Upgrade [@​types/semver](https://github.com/types/semver) from 7.7.1 to 7.8.0 by [@​dependabot](https://github.com/dependabot) in [#​1616](https://github.com/actions/setup-node/pull/1616)
- Upgrade [@​typescript-eslint/parser](https://github.com/typescript-eslint/parser) from 8.62.0 to 8.70.0 by [@​dependabot](https://github.com/dependabot) in [#​1615](https://github.com/actions/setup-node/pull/1615)
- Upgrade pnpm/action-setup from 6.0.10 to 6.1.0 by [@​dependabot](https://github.com/dependabot) in [#​1631](https://github.com/actions/setup-node/pull/1631)
- Upgrade jest-each from 30.4.1 to 30.5.2 by [@​dependabot](https://github.com/dependabot) in [#​1636](https://github.com/actions/setup-node/pull/1636)
- Upgrade eslint-plugin-n from 18.1.0 to 18.3.0 by [@​dependabot](https://github.com/dependabot) in [#​1638](https://github.com/actions/setup-node/pull/1638)
- Update dependencies and add license files by [@​v-HarithaVattikuti](https://github.com/v-HarithaVattikuti) in [#​1642](https://github.com/actions/setup-node/pull/1642)
- Upgrade eslint from 10.5.0 to 10.11.0 and package.json from 7.0.0 to 7.1.0 by [@​dependabot](https://github.com/dependabot) in [#​1635](https://github.com/actions/setup-node/pull/1635)
##### New Contributors
- [@​v-jitenderpalsingh](https://github.com/v-jitenderpalsingh) made their first contribution in [#​1580](https://github.com/actions/setup-node/pull/1580)
- [@​philip-gai](https://github.com/philip-gai) made their first contribution in [#​1584](https://github.com/actions/setup-node/pull/1584)
- [@​gperdomor](https://github.com/gperdomor) made their first contribution in [#​1421](https://github.com/actions/setup-node/pull/1421)
- [@​SubJunk](https://github.com/SubJunk) made their first contribution in [#​1603](https://github.com/actions/setup-node/pull/1603)
**Full Changelog**: <https://github.com/actions/setup-node/compare/v7.0.0...v7.1.0>
### [`v7.0.0`](https://github.com/actions/setup-node/releases/tag/v7.0.0)
[Compare Source](https://github.com/actions/setup-node/compare/v6.5.0...v7.0.0)
##### What's Changed
##### Enhancements:
- Add cache-primary-key and cache-matched-key as outputs by [@​gowridurgad](https://github.com/gowridurgad) in [#​1577](https://github.com/actions/setup-node/pull/1577)
- Migrate to ESM and upgrade dependencies by [@​gowridurgad](https://github.com/gowridurgad) in [#​1574](https://github.com/actions/setup-node/pull/1574)
##### Bug fixes:
- Remove dummy NODE_AUTH_TOKEN export by [@​gowridurgad](https://github.com/gowridurgad) in [#​1558](https://github.com/actions/setup-node/pull/1558)
- Only use `mirrorToken` in `getManifest` if it's provided by [@​deiga](https://github.com/deiga) in [#​1548](https://github.com/actions/setup-node/pull/1548)
##### Documentation updates:
- Add documentation for publishing to npm with Trusted Publisher (OIDC) by [@​chiranjib-swain](https://github.com/chiranjib-swain) in [#​1536](https://github.com/actions/setup-node/pull/1536)
- docs: Update restore-only cache documentation by [@​priya-kinthali](https://github.com/priya-kinthali) in [#​1550](https://github.com/actions/setup-node/pull/1550)
- docs: Update caching recommendations to mitigate cache poisoning risks by [@​chiranjib-swain](https://github.com/chiranjib-swain) in [#​1567](https://github.com/actions/setup-node/pull/1567)
##### Dependency update:
- Upgrade [@​actions/cache](https://github.com/actions/cache) to 5.1.0, log cache write denied by [@​jasongin](https://github.com/jasongin) in [#​1569](https://github.com/actions/setup-node/pull/1569)
##### New Contributors
- [@​chiranjib-swain](https://github.com/chiranjib-swain) made their first contribution in [#​1536](https://github.com/actions/setup-node/pull/1536)
- [@​deiga](https://github.com/deiga) made their first contribution in [#​1548](https://github.com/actions/setup-node/pull/1548)
- [@​jasongin](https://github.com/jasongin) made their first contribution in [#​1569](https://github.com/actions/setup-node/pull/1569)
**Full Changelog**: <https://github.com/actions/setup-node/compare/v6...v7.0.0>
### [`v6.5.0`](https://github.com/actions/setup-node/releases/tag/v6.5.0)
[Compare Source](https://github.com/actions/setup-node/compare/v6.4.0...v6.5.0)
##### What's Changed
- Update [@​actions/cache](https://github.com/actions/cache) to 5.1.0 and add security overrides for undici and fast-xml-parser by [@​HarithaVattikuti](https://github.com/HarithaVattikuti) in [#​1579](https://github.com/actions/setup-node/pull/1579)
**Full Changelog**: <https://github.com/actions/setup-node/compare/v6.4.0...v6.5.0>
### [`v6.4.0`](https://github.com/actions/setup-node/releases/tag/v6.4.0)
[Compare Source](https://github.com/actions/setup-node/compare/v6.3.0...v6.4.0)
##### What's Changed
##### Dependency updates:
- Upgrade [@​actions](https://github.com/actions) dependencies by [@​Copilot](https://github.com/Copilot) in [#​1525](https://github.com/actions/setup-node/pull/1525)
- Update Node.js versions in versions.yml and bump package to v6.4.0 by [@​priya-kinthali](https://github.com/priya-kinthali) in [#​1533](https://github.com/actions/setup-node/pull/1533)
##### New Contributors
- [@​Copilot](https://github.com/Copilot) made their first contribution in [#​1525](https://github.com/actions/setup-node/pull/1525)
**Full Changelog**: <https://github.com/actions/setup-node/compare/v6...v6.4.0>
### [`v6.3.0`](https://github.com/actions/setup-node/releases/tag/v6.3.0)
[Compare Source](https://github.com/actions/setup-node/compare/v6.2.0...v6.3.0)
##### What's Changed
##### Enhancements:
- Support parsing `devEngines` field by [@​susnux](https://github.com/susnux) in [#​1283](https://github.com/actions/setup-node/pull/1283)
> When using node-version-file: package.json, setup-node now prefers devEngines.runtime over engines.node.
##### Dependency updates:
- Fix npm audit issues by [@​gowridurgad](https://github.com/gowridurgad) in [#​1491](https://github.com/actions/setup-node/pull/1491)
- Replace uuid with crypto.randomUUID() by [@​trivikr](https://github.com/trivikr) in [#​1378](https://github.com/actions/setup-node/pull/1378)
- Upgrade minimatch from 3.1.2 to 3.1.5 by [@​dependabot](https://github.com/dependabot) in [#​1498](https://github.com/actions/setup-node/pull/1498)
##### Bug fixes:
- Remove hardcoded bearer for mirror-url [@​marco-ippolito](https://github.com/marco-ippolito) in [#​1467](https://github.com/actions/setup-node/pull/1467)
- Scope test lockfiles by package manager and update cache tests by [@​gowridurgad](https://github.com/gowridurgad) in [#​1495](https://github.com/actions/setup-node/pull/1495)
##### New Contributors
- [@​susnux](https://github.com/susnux) made their first contribution in [#​1283](https://github.com/actions/setup-node/pull/1283)
**Full Changelog**: <https://github.com/actions/setup-node/compare/v6...v6.3.0>
### [`v6.2.0`](https://github.com/actions/setup-node/releases/tag/v6.2.0)
[Compare Source](https://github.com/actions/setup-node/compare/v6.1.0...v6.2.0)
##### What's Changed
##### Documentation
- Documentation update related to absence of Lockfile by [@​mahabaleshwars](https://github.com/mahabaleshwars) in [#​1454](https://github.com/actions/setup-node/pull/1454)
- Correct mirror option typos by [@​MikeMcC399](https://github.com/MikeMcC399) in [#​1442](https://github.com/actions/setup-node/pull/1442)
- Readme update on checkout version v6 by [@​deining](https://github.com/deining) in [#​1446](https://github.com/actions/setup-node/pull/1446)
- Readme typo fixes [@​munyari](https://github.com/munyari) in [#​1226](https://github.com/actions/setup-node/pull/1226)
- Advanced document update on checkout version v6 by [@​aparnajyothi-y](https://github.com/aparnajyothi-y) in [#​1468](https://github.com/actions/setup-node/pull/1468)
##### Dependency updates:
- Upgrade [@​actions/cache](https://github.com/actions/cache) to v5.0.1 by [@​salmanmkc](https://github.com/salmanmkc) in [#​1449](https://github.com/actions/setup-node/pull/1449)
##### New Contributors
- [@​mahabaleshwars](https://github.com/mahabaleshwars) made their first contribution in [#​1454](https://github.com/actions/setup-node/pull/1454)
- [@​MikeMcC399](https://github.com/MikeMcC399) made their first contribution in [#​1442](https://github.com/actions/setup-node/pull/1442)
- [@​deining](https://github.com/deining) made their first contribution in [#​1446](https://github.com/actions/setup-node/pull/1446)
- [@​munyari](https://github.com/munyari) made their first contribution in [#​1226](https://github.com/actions/setup-node/pull/1226)
**Full Changelog**: <https://github.com/actions/setup-node/compare/v6...v6.2.0>
### [`v6.1.0`](https://github.com/actions/setup-node/releases/tag/v6.1.0)
[Compare Source](https://github.com/actions/setup-node/compare/v6.0.0...v6.1.0)
#### What's Changed
##### Enhancement:
- Remove always-auth configuration handling by [@​priyagupta108](https://github.com/priyagupta108) in [#​1436](https://github.com/actions/setup-node/pull/1436)
##### Dependency updates:
- Upgrade [@​actions/cache](https://github.com/actions/cache) from 4.0.3 to 4.1.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1384](https://github.com/actions/setup-node/pull/1384)
- Upgrade actions/checkout from 5 to 6 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1439](https://github.com/actions/setup-node/pull/1439)
- Upgrade js-yaml from 3.14.1 to 3.14.2 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1435](https://github.com/actions/setup-node/pull/1435)
##### Documentation update:
- Add example for restore-only cache in documentation by [@​aparnajyothi-y](https://github.com/aparnajyothi-y) in [#​1419](https://github.com/actions/setup-node/pull/1419)
**Full Changelog**: <https://github.com/actions/setup-node/compare/v6...v6.1.0>
### [`v6.0.0`](https://github.com/actions/setup-node/releases/tag/v6.0.0)
[Compare Source](https://github.com/actions/setup-node/compare/v5.0.0...v6.0.0)
##### What's Changed
**Breaking Changes**
- Limit automatic caching to npm, update workflows and documentation by [@​priyagupta108](https://github.com/priyagupta108) in [#​1374](https://github.com/actions/setup-node/pull/1374)
**Dependency Upgrades**
- Upgrade ts-jest from 29.1.2 to 29.4.1 and document breaking changes in v5 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1336](https://github.com/actions/setup-node/pull/1336)
- Upgrade prettier from 2.8.8 to 3.6.2 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1334](https://github.com/actions/setup-node/pull/1334)
- Upgrade actions/publish-action from 0.3.0 to 0.4.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1362](https://github.com/actions/setup-node/pull/1362)
**Full Changelog**: <https://github.com/actions/setup-node/compare/v5...v6.0.0>
### [`v5.0.0`](https://github.com/actions/setup-node/releases/tag/v5.0.0)
[Compare Source](https://github.com/actions/setup-node/compare/v4.4.0...v5.0.0)
##### What's Changed
##### Breaking Changes
- Enhance caching in setup-node with automatic package manager detection by [@​priya-kinthali](https://github.com/priya-kinthali) in [#​1348](https://github.com/actions/setup-node/pull/1348)
This update, introduces automatic caching when a valid `packageManager` field is present in your `package.json`. This aims to improve workflow performance and make dependency management more seamless.
To disable this automatic caching, set `package-manager-cache: false`
```yaml
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
package-manager-cache: false
```
- Upgrade action to use node24 by [@​salmanmkc](https://github.com/salmanmkc) in [#​1325](https://github.com/actions/setup-node/pull/1325)
Make sure your runner is on version v2.327.1 or later to ensure compatibility with this release. [See Release Notes](https://github.com/actions/runner/releases/tag/v2.327.1)
##### Dependency Upgrades
- Upgrade [@​octokit/request-error](https://github.com/octokit/request-error) and [@​actions/github](https://github.com/actions/github) by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1227](https://github.com/actions/setup-node/pull/1227)
- Upgrade uuid from 9.0.1 to 11.1.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1273](https://github.com/actions/setup-node/pull/1273)
- Upgrade undici from 5.28.5 to 5.29.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1295](https://github.com/actions/setup-node/pull/1295)
- Upgrade form-data to bring in fix for critical vulnerability by [@​gowridurgad](https://github.com/gowridurgad) in [#​1332](https://github.com/actions/setup-node/pull/1332)
- Upgrade actions/checkout from 4 to 5 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1345](https://github.com/actions/setup-node/pull/1345)
##### New Contributors
- [@​priya-kinthali](https://github.com/priya-kinthali) made their first contribution in [#​1348](https://github.com/actions/setup-node/pull/1348)
- [@​salmanmkc](https://github.com/salmanmkc) made their first contribution in [#​1325](https://github.com/actions/setup-node/pull/1325)
**Full Changelog**: <https://github.com/actions/setup-node/compare/v4...v5.0.0>
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xOTguMiIsInVwZGF0ZWRJblZlciI6IjQ0LjE5OC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠️Warning: custom changes will be lost.
### Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠️ **Warning**: custom changes will be lost.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
v4→v7Release Notes
actions/setup-node
v7.1.0Compare Source
What's Changed
Enhancements:
Bug fixes:
Documentation updates:
Dependency updates:
New Contributors
Full Changelog: https://github.com/actions/setup-node/compare/v7.0.0...v7.1.0
v7.0.0Compare Source
What's Changed
Enhancements:
Bug fixes:
mirrorTokeningetManifestif it's provided by @deiga in #1548Documentation updates:
Dependency update:
New Contributors
Full Changelog: https://github.com/actions/setup-node/compare/v6...v7.0.0
v6.5.0Compare Source
What's Changed
Full Changelog: https://github.com/actions/setup-node/compare/v6.4.0...v6.5.0
v6.4.0Compare Source
What's Changed
Dependency updates:
New Contributors
Full Changelog: https://github.com/actions/setup-node/compare/v6...v6.4.0
v6.3.0Compare Source
What's Changed
Enhancements:
devEnginesfield by @susnux in #1283Dependency updates:
Bug fixes:
New Contributors
Full Changelog: https://github.com/actions/setup-node/compare/v6...v6.3.0
v6.2.0Compare Source
What's Changed
Documentation
Dependency updates:
New Contributors
Full Changelog: https://github.com/actions/setup-node/compare/v6...v6.2.0
v6.1.0Compare Source
What's Changed
Enhancement:
Dependency updates:
Documentation update:
Full Changelog: https://github.com/actions/setup-node/compare/v6...v6.1.0
v6.0.0Compare Source
What's Changed
Breaking Changes
Dependency Upgrades
Full Changelog: https://github.com/actions/setup-node/compare/v5...v6.0.0
v5.0.0Compare Source
What's Changed
Breaking Changes
This update, introduces automatic caching when a valid
packageManagerfield is present in yourpackage.json. This aims to improve workflow performance and make dependency management more seamless.To disable this automatic caching, set
package-manager-cache: falseMake sure your runner is on version v2.327.1 or later to ensure compatibility with this release. See Release Notes
Dependency Upgrades
New Contributors
Full Changelog: https://github.com/actions/setup-node/compare/v4...v5.0.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.
Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠️ Warning: custom changes will be lost.
Pull request closed