From 19530ba1358dd62127ad349c41077e22d9dc9107 Mon Sep 17 00:00:00 2001
From: DanielHabenicht <daniel-habenicht@outlook.de>
Date: Wed, 14 Oct 2020 02:51:53 +0200
Subject: [PATCH] Update examples.md

---
 examples.md | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/examples.md b/examples.md
index c66eca6..61eb993 100644
--- a/examples.md
+++ b/examples.md
@@ -194,12 +194,13 @@ If using `npm config` to retrieve the cache directory, ensure you run [actions/s
 
 ```yaml
 - name: Get npm cache directory
-  id: npm-cache
+  id: npm-cache-dir
   run: |
     echo "::set-output name=dir::$(npm config get cache)"
 - uses: actions/cache@v2
+  id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
   with:
-    path: ${{ steps.npm-cache.outputs.dir }}
+    path: ${{ steps.npm-cache-dir.outputs.dir }}
     key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
     restore-keys: |
       ${{ runner.os }}-node-