From 95db8b1e7781304413720683b64683ac2c7573b1 Mon Sep 17 00:00:00 2001 From: Ben Limmer Date: Thu, 7 Dec 2023 08:55:55 -0700 Subject: [PATCH] feat: support Yarn Berry global cache --- 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: