Skip to content

Commit 3c1fbef

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ The second option looks more generic because it allows to:
2323

2424
## Decision
2525

26-
Add `deps-lock-file` 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('**/packages.lock.json') }}` YAML construction does.
26+
Add `package-lock-file` 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.
2828
The hash of provided matched files will be used as a part of cache key.
2929

3030
Yaml examples:
@@ -35,7 +35,7 @@ steps:
3535
with:
3636
node-version: 14
3737
cache: npm
38-
deps-lock-file: 'sub-project/package-lock.json'
38+
package-lock-file: '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-
deps-lock-file: 'sub-project/**/yarn.lock'
47+
package-lock-file: 'sub-project/**/yarn.lock'
4848
```

0 commit comments

Comments
 (0)