bahmutov / npm-install

GitHub Action for install npm dependencies with caching without any configuration
https://github.com/marketplace/actions/npm-or-yarn-install-with-caching
650 stars 70 forks source link

feat: Add support for yarn berry #229

Open chloe463 opened 4 months ago

chloe463 commented 4 months ago

Hello!

This pull request adds support for Yarn Berry, the latest version of Yarn package manager. In Yarn Berry, the --frozen-lock-file option has been deprecated and replaced with --immutable. I have updated the code to use the --immutable option and also adjusted the cache directory path to $HOME/.yarn/berry/cache.

I believe these changes are straightforward, but if you have any suggestions or improvements, please let me know. I'm open to feedback and would appreciate your insights. Thank you for considering these changes.

chloe463 commented 4 months ago

@bahmutov May I ask for your review on this?