mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 11:48:38 +08:00 
			
		
		
		
	Add lerna example for caching multiple dirs
This commit is contained in:
		
							parent
							
								
									b862af881e
								
							
						
					
					
						commit
						482e3f4bd9
					
				
							
								
								
									
										13
									
								
								examples.md
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								examples.md
									
									
									
									
									
								
							|  | @ -12,6 +12,7 @@ | ||||||
|     - [Windows](#windows) |     - [Windows](#windows) | ||||||
|     - [Using multiple systems and `npm config`](#using-multiple-systems-and-npm-config) |     - [Using multiple systems and `npm config`](#using-multiple-systems-and-npm-config) | ||||||
|   - [Node - Yarn](#node---yarn) |   - [Node - Yarn](#node---yarn) | ||||||
|  |   - [Node - Lerna](#node---lerna) | ||||||
|   - [OCaml/Reason - esy](#ocamlreason---esy) |   - [OCaml/Reason - esy](#ocamlreason---esy) | ||||||
|   - [PHP - Composer](#php---composer) |   - [PHP - Composer](#php---composer) | ||||||
|   - [Python - pip](#python---pip) |   - [Python - pip](#python---pip) | ||||||
|  | @ -180,6 +181,18 @@ The yarn cache directory will depend on your operating system and version of `ya | ||||||
|       ${{ runner.os }}-yarn- |       ${{ runner.os }}-yarn- | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | ## Node - Lerna | ||||||
|  | 
 | ||||||
|  | ```yaml | ||||||
|  | - name: restore lerna | ||||||
|  |   uses: actions/cache@v3 | ||||||
|  |    with: | ||||||
|  |      path: | | ||||||
|  |        node_modules | ||||||
|  |         */*/node_modules | ||||||
|  |      key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
| ## OCaml/Reason - esy | ## OCaml/Reason - esy | ||||||
| Esy allows you to export built dependencies and import pre-built dependencies. | Esy allows you to export built dependencies and import pre-built dependencies. | ||||||
| ```yaml | ```yaml | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Ethan Dennis
						Ethan Dennis