Skip to content

Commit

Permalink
Update 0001-support-caching-deps-for-monorepos.md
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-lobanov committed Jul 13, 2021
1 parent 5aa72c2 commit 3c1fbef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/adrs/0001-support-caching-deps-for-monorepos.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ The second option looks more generic because it allows to:

## Decision

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

Yaml examples:
Expand All @@ -35,7 +35,7 @@ steps:
with:
node-version: 14
cache: npm
deps-lock-file: 'sub-project/package-lock.json'
package-lock-file: 'sub-project/package-lock.json'
```
```yml
steps:
Expand All @@ -44,5 +44,5 @@ steps:
with:
node-version: 14
cache: yarn
deps-lock-file: 'sub-project/**/yarn.lock'
package-lock-file: 'sub-project/**/yarn.lock'
```

0 comments on commit 3c1fbef

Please sign in to comment.