From 19792d1017da6ba95b4d4444b305297067ad21e2 Mon Sep 17 00:00:00 2001 From: Ben Limmer <630449+blimmer@users.noreply.github.com> Date: Thu, 4 Jan 2024 15:53:53 -0700 Subject: [PATCH] feat: support Yarn Berry global cache (#201) --- src/commands/install-packages.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/install-packages.yml b/src/commands/install-packages.yml index 93eb560..e5d8840 100644 --- a/src/commands/install-packages.yml +++ b/src/commands/install-packages.yml @@ -176,7 +176,8 @@ steps: - save_cache: key: node-deps-{{ arch }}-<>-<<#parameters.include-branch-in-cache-key>>{{ .Branch }}-<><<^parameters.cache-only-lockfile>>{{ checksum "/tmp/node-project-package.json" }}-<>{{ checksum "/tmp/node-project-lockfile" }} paths: - - <>/.yarn/cache + - ~/.yarn/berry/cache # global cache, the default in Yarn Berry v4+ + - <>/.yarn/cache # project cache, the default in Yarn Berry > 2 and < 4 - when: condition: << parameters.with-cache >> steps: