Skip to content

Commit

Permalink
feat: support Yarn Berry global cache (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
blimmer authored Jan 4, 2024
1 parent d25a565 commit 19792d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/install-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ steps:
- save_cache:
key: node-deps-{{ arch }}-<<parameters.cache-version>>-<<#parameters.include-branch-in-cache-key>>{{ .Branch }}-<</parameters.include-branch-in-cache-key>><<^parameters.cache-only-lockfile>>{{ checksum "/tmp/node-project-package.json" }}-<</parameters.cache-only-lockfile>>{{ checksum "/tmp/node-project-lockfile" }}
paths:
- <<parameters.app-dir>>/.yarn/cache
- ~/.yarn/berry/cache # global cache, the default in Yarn Berry v4+
- <<parameters.app-dir>>/.yarn/cache # project cache, the default in Yarn Berry > 2 and < 4
- when:
condition: << parameters.with-cache >>
steps:
Expand Down

0 comments on commit 19792d1

Please sign in to comment.