setup-node/dist
Satishchoudhary94 844d397646 fix(#1027): Improve yarn v4+ corepack support with better error handling
This change improves the action's handling of yarn v4+ which requires corepack.

Changes:
- Add enableCorepackIfSupported() helper function to automatically enable corepack
- Update yarn getCacheFolderPath to call corepack enable before checking yarn version
- Detect corepack-related errors and provide clear, actionable error messages
- Users can either enable corepack before the action or disable caching

The error message now clearly explains:
- The requirement for corepack with yarn v4+
- How to enable corepack: 'corepack enable'
- Alternative: disable caching with 'package-manager-cache: false'
- Link to GitHub issue for more context

Fixes #1027
Related: https://github.com/actions/setup-node/issues/1027
2026-01-18 14:11:36 +00:00
..
cache-save fix(#1027): Improve yarn v4+ corepack support with better error handling 2026-01-18 14:11:36 +00:00
setup fix(#1027): Improve yarn v4+ corepack support with better error handling 2026-01-18 14:11:36 +00:00