Include cache hit in example

`cache-hit` is in fact not mentioned anywhere in the README file
This commit is contained in:
Juan Julián Merelo Guervós 2022-01-18 10:42:36 +01:00 committed by GitHub
parent f099707f6e
commit 29392ffe17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,10 +52,12 @@ See the examples of using cache for `yarn` / `pnpm` and `cache-dependency-path`
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
id: setup
with:
node-version: '14'
cache: 'npm'
- run: npm install
- if: !steps.setup.outputs.cache-hit != 'true'
run: npm install
- run: npm test
```