Skip to content

Commit

Permalink
Add info on storing cache in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
amytych committed Jan 23, 2020
1 parent b595dd6 commit b55af9f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions errors/no-cache.md
Expand Up @@ -74,3 +74,14 @@ cache:
- 'node_modules/**/*' # Cache `node_modules` for faster `yarn` or `npm i`
- '.next/cache/**/*' # Cache Next.js for faster application rebuilds
```

**GitHub Actions**

Use GitHub's [actions/cache](https://github.com/actions/cache), add the following step in your workflow file:

```
uses: actions/cache@v1
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}
```

0 comments on commit b55af9f

Please sign in to comment.