Skip to content

Commit f43d8a1

Browse files
committed
Update 0001-support-caching-deps-for-monorepos.md
1 parent 3c1fbef commit f43d8a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/adrs/0001-support-caching-deps-for-monorepos.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The second option looks more generic because it allows to:
2323

2424
## Decision
2525

26-
Add `package-lock-file` input that will accept path (relative to repository root) to dependencies lock file.
26+
Add `cache-dependency-path` input that will accept path (relative to repository root) to dependencies lock file.
2727
If provided path contains wildcards, the action will search all maching files and calculate common hash like `${{ hashFiles('**/package-lock.json') }}` YAML construction does.
2828
The hash of provided matched files will be used as a part of cache key.
2929

@@ -35,7 +35,7 @@ steps:
3535
with:
3636
node-version: 14
3737
cache: npm
38-
package-lock-file: 'sub-project/package-lock.json'
38+
cache-dependency-path: 'sub-project/package-lock.json'
3939
```
4040
```yml
4141
steps:
@@ -44,5 +44,5 @@ steps:
4444
with:
4545
node-version: 14
4646
cache: yarn
47-
package-lock-file: 'sub-project/**/yarn.lock'
47+
cache-dependency-path: 'sub-project/**/yarn.lock'
4848
```

0 commit comments

Comments
 (0)