mirror of
https://github.com/actions/setup-node.git
synced 2026-02-04 06:28:20 +00:00
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 |
||
|---|---|---|
| .. | ||
| cache-save | ||
| setup | ||