From 482e3f4bd9105cfffa57f44570cf0eb8d773b803 Mon Sep 17 00:00:00 2001 From: Ethan Dennis Date: Fri, 20 Mar 2020 12:05:21 -0700 Subject: [PATCH] Add lerna example for caching multiple dirs --- examples.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/examples.md b/examples.md index 8ed05a9..f8d39df 100644 --- a/examples.md +++ b/examples.md @@ -12,6 +12,7 @@ - [Windows](#windows) - [Using multiple systems and `npm config`](#using-multiple-systems-and-npm-config) - [Node - Yarn](#node---yarn) + - [Node - Lerna](#node---lerna) - [OCaml/Reason - esy](#ocamlreason---esy) - [PHP - Composer](#php---composer) - [Python - pip](#python---pip) @@ -180,6 +181,18 @@ 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@v3 + 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