Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update 0000-caching-dependencies.md
  • Loading branch information
Maxim Lobanov committed May 24, 2021
commit 5fddb2d5101a1d50d5a55586ac2fded054bf56e7
1 change: 1 addition & 0 deletions docs/adrs/0000-caching-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ We don't persue the goal to provide wide customization of caching in scope of `a
- if input contains wildcards (like `**/package-lock.json`), hash of multiple files will be used
- The hash of file provided in `package-lock-path` input will be used as cache key (the same approach like [actions/cache](https://github.com/actions/cache/blob/main/examples.md#node---npm) recommends)
- The following key cache will be used `${{ runner.os }}-npm-${{ hashFiles('<package-lock-path>') }}`
- Action will cache global npm cache directory (retrieved via `npm config get cache`)

# Example of real use-cases
Default use case when `package-lock.json` or `yarn.lock` are located in repository root:
Expand Down