Unverified Commit 35433245 authored by Konrad Pabjan's avatar Konrad Pabjan Committed by GitHub
Browse files

Merge pull request #434 from DanielHabenicht/patch-1

Update examples.md for NPM
parents 3303695a 19530ba1
Loading
Loading
Loading
Loading
+3 −2
Changes for examples.md: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -195,12 +195,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-