mirror of
				https://git.mirrors.martin98.com/https://github.com/actions/cache
				synced 2025-10-31 16:11:05 +08:00 
			
		
		
		
	Update examples.md (#1026)
According with the behavior description the id of "Get npm cache directory" must be "npm-cache-dir". I checked it in my own project.
This commit is contained in:
		
							parent
							
								
									fb86cbf360
								
							
						
					
					
						commit
						dc097e3bb9
					
				| @ -317,7 +317,7 @@ After [deprecation](https://github.blog/changelog/2022-10-11-github-actions-depr | |||||||
| ### Bash shell | ### Bash shell | ||||||
| ```yaml | ```yaml | ||||||
| - name: Get npm cache directory | - name: Get npm cache directory | ||||||
|   id: npm-cache |   id: npm-cache-dir | ||||||
|   shell: bash |   shell: bash | ||||||
|   run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} |   run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} | ||||||
| ``` | ``` | ||||||
| @ -325,7 +325,7 @@ After [deprecation](https://github.blog/changelog/2022-10-11-github-actions-depr | |||||||
| ### PWSH shell | ### PWSH shell | ||||||
| ```yaml | ```yaml | ||||||
| - name: Get npm cache directory | - name: Get npm cache directory | ||||||
|   id: npm-cache |   id: npm-cache-dir | ||||||
|   shell: pwsh |   shell: pwsh | ||||||
|   run: echo "dir=$(npm config get cache)" >> ${env:GITHUB_OUTPUT} |   run: echo "dir=$(npm config get cache)" >> ${env:GITHUB_OUTPUT} | ||||||
| ``` | ``` | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 A. Pascual
						A. Pascual