Skip to content

Commit

Permalink
Add info on storing cache in GitHub Actions (#10231)
Browse files Browse the repository at this point in the history
* Add info on storing cache in GitHub Actions

* Specify yaml for code formatting

Co-Authored-By: Joe Haddad <timer150@gmail.com>

* Fix wording

Co-Authored-By: Joe Haddad <timer150@gmail.com>

Co-authored-by: Joe Haddad <timer150@gmail.com>
  • Loading branch information
amytych and Timer committed Jan 23, 2020
1 parent 32ded05 commit 9d7ee34
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions errors/no-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,17 @@ cache:
- '.next/cache/**/*' # Cache Next.js for faster application rebuilds
```
**GitHub Actions**
Using GitHub's [actions/cache](https://github.com/actions/cache), add the following step in your workflow file:
```yaml
uses: actions/cache@v1
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}
```
**Bitbucket Pipelines**
Add or merge the following into your `bitbucket-pipelines.yml` at the top level (same level as `pipelines`):
Expand Down

0 comments on commit 9d7ee34

Please sign in to comment.