setup-node/src
Satishchoudhary94 dff445bec7 fix(#1357): Gracefully handle missing pnpm installation during cache
This change prevents the action from failing immediately when pnpm is specified
in packageManager but not yet installed (e.g., when using corepack).

Changes:
- Add isPackageManagerInstalled() function to check if a package manager exists
- Update restoreCache to skip caching with a warning if package manager not found
- Update cachePackages to skip cache save with a warning if package manager not found
- This allows workflows to continue instead of failing
- Users can either install pnpm first or disable caching with package-manager-cache: false

Fixes #1357
Related: https://github.com/actions/setup-node/issues/1357
2026-01-18 14:08:11 +00:00
..
distributions Bump prettier from 2.8.8 to 3.6.2 (#1334) 2025-09-18 15:17:30 -05:00
authutil.ts Remove always-auth configuration handling from action (#1436) 2025-11-26 11:37:55 -06:00
cache-restore.ts fix(#1357): Gracefully handle missing pnpm installation during cache 2026-01-18 14:08:11 +00:00
cache-save.ts fix(#1357): Gracefully handle missing pnpm installation during cache 2026-01-18 14:08:11 +00:00
cache-utils.ts fix(#1357): Gracefully handle missing pnpm installation during cache 2026-01-18 14:08:11 +00:00
constants.ts change getinput to getstate for cache (#816) 2023-08-10 16:32:24 +02:00
main.ts Remove always-auth configuration handling from action (#1436) 2025-11-26 11:37:55 -06:00
setup-node.ts download from node-versions and fallback to node dist (#147) 2020-05-19 09:25:54 -04:00
util.ts Add support for arm64 Windows (#927) 2024-02-06 22:42:16 -06:00