Commit 9d7ee34d authored by Arek Mytych's avatar Arek Mytych Committed by Joe Haddad

Add info on storing cache in GitHub Actions (#10231)

* Add info on storing cache in GitHub Actions

* Specify yaml for code formatting
Co-Authored-By: 's avatarJoe Haddad <timer150@gmail.com>

* Fix wording
Co-Authored-By: 's avatarJoe Haddad <timer150@gmail.com>
Co-authored-by: 's avatarJoe Haddad <timer150@gmail.com>
parent 32ded053
......@@ -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`):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment