From e594402b46685e734f6942fa201c62424a5c82e4 Mon Sep 17 00:00:00 2001
From: Josh <joshmgross@github.com>
Date: Thu, 2 Apr 2020 14:04:17 +0000
Subject: [PATCH] Fix lerna example

---
 README.md   |  1 +
 examples.md | 27 ++++++++++++++-------------
 2 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/README.md b/README.md
index 5c86306..e827789 100644
--- a/README.md
+++ b/README.md
@@ -67,6 +67,7 @@ See [Examples](examples.md) for a list of `actions/cache` implementations for us
 - [Java - Gradle](./examples.md#java---gradle)
 - [Java - Maven](./examples.md#java---maven)
 - [Node - npm](./examples.md#node---npm)
+- [Node - Lerna](./examples.md#node---lerna)
 - [Node - Yarn](./examples.md#node---yarn)
 - [OCaml/Reason - esy](./examples.md##ocamlreason---esy)
 - [PHP - Composer](./examples.md#php---composer)
diff --git a/examples.md b/examples.md
index e3a1a06..f896321 100644
--- a/examples.md
+++ b/examples.md
@@ -11,8 +11,8 @@
     - [macOS and Ubuntu](#macos-and-ubuntu)
     - [Windows](#windows)
     - [Using multiple systems and `npm config`](#using-multiple-systems-and-npm-config)
-  - [Node - Yarn](#node---yarn)
   - [Node - Lerna](#node---lerna)
+  - [Node - Yarn](#node---yarn)
   - [OCaml/Reason - esy](#ocamlreason---esy)
   - [PHP - Composer](#php---composer)
   - [Python - pip](#python---pip)
@@ -168,6 +168,19 @@ For npm, cache files are stored in `~/.npm` on Posix, or `%AppData%/npm-cache` o
       ${{ runner.os }}-node-
 ```
 
+## Node - Lerna
+
+>Note this example uses the new multi-paths feature and is only available at `master`
+```yaml
+- name: restore lerna
+  uses: actions/cache@master
+   with:
+     path: |
+       node_modules
+        */*/node_modules
+     key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
+```
+
 ## Node - Yarn
 The yarn cache directory will depend on your operating system and version of `yarn`. See https://yarnpkg.com/lang/en/docs/cli/cache/ for more info.
 
@@ -185,18 +198,6 @@ The yarn cache directory will depend on your operating system and version of `ya
       ${{ runner.os }}-yarn-
 ```
 
-## Node - Lerna
-
-```yaml
-- name: restore lerna
-  uses: actions/cache@v2
-   with:
-     path: |
-       node_modules
-        */*/node_modules
-     key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
-```
-
 ## OCaml/Reason - esy
 Esy allows you to export built dependencies and import pre-built dependencies.
 ```yaml