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 15, 2021
1 parent 3c1fbef commit f43d8a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/adrs/0001-support-caching-deps-for-monorepos.md
Expand Up @@ -23,7 +23,7 @@ The second option looks more generic because it allows to:

## Decision

Add `package-lock-file` input that will accept path (relative to repository root) to dependencies lock file.
Add `cache-dependency-path` 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.

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

1 comment on commit f43d8a1

@Mohamad123112
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

مرحيا

Please sign in to comment.