From f43d8a1f27404e4f3fe2c5c1832c5e4e066bad96 Mon Sep 17 00:00:00 2001 From: Maxim Lobanov Date: Thu, 15 Jul 2021 13:23:09 +0300 Subject: [PATCH] Update 0001-support-caching-deps-for-monorepos.md --- docs/adrs/0001-support-caching-deps-for-monorepos.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/adrs/0001-support-caching-deps-for-monorepos.md b/docs/adrs/0001-support-caching-deps-for-monorepos.md index 923e189..0677873 100644 --- a/docs/adrs/0001-support-caching-deps-for-monorepos.md +++ b/docs/adrs/0001-support-caching-deps-for-monorepos.md @@ -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. @@ -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: @@ -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' ```