mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 08:33:33 +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
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user