Skip to content

Commit

Permalink
Changing GitHub Actions cache documentation (#28228)
Browse files Browse the repository at this point in the history
## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes


Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
  • Loading branch information
chrispat and ijjk committed Feb 6, 2022
1 parent 021fd94 commit 74a6533
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion errors/no-cache.md
Expand Up @@ -80,7 +80,10 @@ Using GitHub's [actions/cache](https://github.com/actions/cache), add the follow
```yaml
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/.next/cache
# 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
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
Expand Down

0 comments on commit 74a6533

Please sign in to comment.