mirror of
				https://github.moeyy.xyz/https://github.com/actions/cache.git
				synced 2025-10-28 13:14:24 +08:00 
			
		
		
		
	Use cache in check-dist.yml
Signed-off-by: jongwooo <jongwooo.han@gmail.com>
This commit is contained in:
		
							parent
							
								
									f8116c8945
								
							
						
					
					
						commit
						7920f570b8
					
				
							
								
								
									
										11
									
								
								.github/workflows/check-dist.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/workflows/check-dist.yml
									
									
									
									
										vendored
									
									
								
							| @ -27,6 +27,17 @@ jobs: | |||||||
|         uses: actions/setup-node@v3 |         uses: actions/setup-node@v3 | ||||||
|         with: |         with: | ||||||
|           node-version: 16.x |           node-version: 16.x | ||||||
|  |       - name: Determine npm cache directory | ||||||
|  |         id: npm-cache | ||||||
|  |         run: | | ||||||
|  |           echo "::set-output name=dir::$(npm config get cache)" | ||||||
|  |       - name: Restore npm cache | ||||||
|  |         uses: actions/cache@v3 | ||||||
|  |         with: | ||||||
|  |           path: ${{ steps.npm-cache.outputs.dir }} | ||||||
|  |           key: check-dist-${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||||||
|  |           restore-keys: | | ||||||
|  |             check-dist-${{ runner.os }}-node- | ||||||
|       - name: Install dependencies |       - name: Install dependencies | ||||||
|         run: npm ci |         run: npm ci | ||||||
|       - name: Rebuild the dist/ directory |       - name: Rebuild the dist/ directory | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 jongwooo
						jongwooo