From 5027ca4eb80d7e79043aa7ea34010760dc04251f Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Wed, 18 Aug 2021 00:41:46 -0400 Subject: [PATCH 1/3] Changing GitHub Actions cache documentation --- errors/no-cache.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/errors/no-cache.md b/errors/no-cache.md index a580397ef99bd..add64cdc3cb2e 100644 --- a/errors/no-cache.md +++ b/errors/no-cache.md @@ -80,7 +80,9 @@ Using GitHub's [actions/cache](https://github.com/actions/cache), add the follow ```yaml uses: actions/cache@v2 with: - path: ${{ github.workspace }}/.next/cache + path: | + ~/.npm + ${{ github.workspace }}/.next/cache # Generate a new cache whenever packages or source files change. key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]sx?') }} # If source files changed but packages didn't, rebuild from a prior cache. From 21d1b23da9ddda98b42a159d5188852fa57b43d3 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Sun, 6 Feb 2022 12:53:10 -0600 Subject: [PATCH 2/3] Add comment for caching with yarn --- errors/no-cache.md | 1 + 1 file changed, 1 insertion(+) diff --git a/errors/no-cache.md b/errors/no-cache.md index caff80f542879..a6427c4795188 100644 --- a/errors/no-cache.md +++ b/errors/no-cache.md @@ -80,6 +80,7 @@ Using GitHub's [actions/cache](https://github.com/actions/cache), add the follow ```yaml uses: actions/cache@v2 with: + # See here for caching with `yarn` https://github.com/actions/cache/blob/main/examples.md#node---yarn path: | ~/.npm ${{ github.workspace }}/.next/cache From 2d68b739688d3e76a41364d0f8d27236862917d7 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Sun, 6 Feb 2022 12:54:33 -0600 Subject: [PATCH 3/3] mention actions/setup-node caching --- errors/no-cache.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors/no-cache.md b/errors/no-cache.md index a6427c4795188..b3b0214ca31ff 100644 --- a/errors/no-cache.md +++ b/errors/no-cache.md @@ -80,7 +80,7 @@ Using GitHub's [actions/cache](https://github.com/actions/cache), add the follow ```yaml uses: actions/cache@v2 with: - # See here for caching with `yarn` https://github.com/actions/cache/blob/main/examples.md#node---yarn + # See here for caching with `yarn` https://github.com/actions/cache/blob/main/examples.md#node---yarn or you can leverage caching with actions/setup-node https://github.com/actions/setup-node path: | ~/.npm ${{ github.workspace }}/.next/cache