From 6237a8ea563983573f0a4871a9e2db550cac4028 Mon Sep 17 00:00:00 2001 From: Public Profile Date: Sun, 13 Mar 2022 16:28:46 -0700 Subject: [PATCH] [docs] remove star search from yarn.lock i dunno, some recent change to cache caused the `**/yarn.lock` lookup to start failing for me. I just have a standard project with a yarn.lock in the top level and this fixed it. --- examples.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples.md b/examples.md index 9189ad8..40895fc 100644 --- a/examples.md +++ b/examples.md @@ -330,7 +330,7 @@ The yarn cache directory will depend on your operating system and version of `ya id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- ``` @@ -348,7 +348,7 @@ The yarn 2 cache directory will depend on your config. See https://yarnpkg.com/c id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- ```