You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/adrs/0001-support-caching-deps-for-monorepos.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Currently, `actions/setup-node` supports caching dependencies for Npm and Yarn p
8
8
For the first iteration, we have decided to not support cases where `package-lock.json` / `yarn.lock` are located outside of repository root.
9
9
Current implementation searches the following file patterns in the repository root: `package-lock.json`, `yarn.lock` (in order of resolving priorities)
10
10
11
-
Obviously, it made build-in caching unusable for mono-repos and repos with complex structure.
11
+
Obviously, it made built-in caching unusable for mono-repos and repos with complex structure.
12
12
We would like to revisit this decision and add customization for dependencies lock file location.
13
13
14
14
## Proposal
@@ -24,7 +24,7 @@ The second option looks more generic because it allows to:
24
24
## Decision
25
25
26
26
Add `cache-dependency-path` input that will accept path (relative to repository root) to dependencies lock file.
27
-
If provided path contains wildcards, the action will search all maching files and calculate common hash like `${{ hashFiles('**/package-lock.json') }}` YAML construction does.
27
+
If provided path contains wildcards, the action will search all matching files and calculate common hash like `${{ hashFiles('**/package-lock.json') }}` YAML construction does.
28
28
The hash of provided matched files will be used as a part of cache key.
0 commit comments