mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
Include cache hit in example
`cache-hit` is in fact not mentioned anywhere in the README file
This commit is contained in:
parent
f099707f6e
commit
29392ffe17
1 changed files with 3 additions and 1 deletions
|
@ -52,10 +52,12 @@ See the examples of using cache for `yarn` / `pnpm` and `cache-dependency-path`
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
|
id: setup
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '14'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- run: npm install
|
- if: !steps.setup.outputs.cache-hit != 'true'
|
||||||
|
run: npm install
|
||||||
- run: npm test
|
- run: npm test
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue