Unverified Commit 2ac7e4c8 authored by eve0415's avatar eve0415 Committed by GitHub

docs: update `ci-build-caching` (#41763)

This tiny PR is just to update document in [Continuous Integration (CI) Build Caching - GitHub Actions](https://nextjs.org/docs/advanced-features/ci-build-caching#github-actions).

The last version of `actions/cache@v2` is almost an year old, which is [2.1.7](https://github.com/actions/cache/releases/tag/v2.1.7).
It also uses [`::set-output` which is now deprecated](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/), and users should start moving to `actions/cache@v3` instead.


As stated in [GitHub Actions: Deprecating save-state and set-output commands](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/), the deprecated method will be fully disable them on 31st May 2023, which we still have times to move.
parent e107bc45
...@@ -75,7 +75,7 @@ cache: ...@@ -75,7 +75,7 @@ cache:
Using GitHub's [actions/cache](https://github.com/actions/cache), add the following step in your workflow file: Using GitHub's [actions/cache](https://github.com/actions/cache), add the following step in your workflow file:
```yaml ```yaml
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
# 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 # 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: | path: |
......
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