Docs feedback: Caching Node packages with Yarn 2 for GitLab CI/CD

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

In the document Caching in GitLab CI/CD - specifically at the end of the section Compute the cache key from the lock file - you mention caching for Yarn by using the 'yarn-offline-mirror'. This functionality is for Yarn 1 (Classic).

The more recent version of Yarn - Yarn 2 - does not support this specific 'keyword'. It has other means of caching the downloaded packages. See this discussions:

I am in the process of trying it myself but what I read it seems caching the folder .yarn/cache (which contains the archives of the downloaded node packages) should be sufficient.

Edited by 🤖 GitLab Bot 🤖