mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 10:14:02 +00:00 
			
		
		
		
	Merge 145bc73f8687d64697b24226f7d09d64cb4eb91b into 515d10b4fd9bb4858066bd5769f55bd498dcdd27
This commit is contained in:
		
						commit
						30b8cfff58
					
				@ -97,6 +97,7 @@ See [Examples](examples.md) for a list of `actions/cache` implementations for us
 | 
			
		||||
- [Node - npm](./examples.md#node---npm)
 | 
			
		||||
- [Node - Lerna](./examples.md#node---lerna)
 | 
			
		||||
- [Node - Yarn](./examples.md#node---yarn)
 | 
			
		||||
- [Node - Typescript](./examples.md#node---typescript)
 | 
			
		||||
- [OCaml/Reason - esy](./examples.md##ocamlreason---esy)
 | 
			
		||||
- [PHP - Composer](./examples.md#php---composer)
 | 
			
		||||
- [Python - pip](./examples.md#python---pip)
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										14
									
								
								examples.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								examples.md
									
									
									
									
									
								
							@ -231,6 +231,20 @@ The yarn cache directory will depend on your operating system and version of `ya
 | 
			
		||||
      ${{ runner.os }}-yarn-
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Node - Typescript
 | 
			
		||||
Enable typescript incremantal build by passing flag  `--incremental` and location of incremental build info is controlled by flag `--tsBuildInfoFile`
 | 
			
		||||
More info in https://www.typescriptlang.org/docs/handbook/compiler-options.html
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
    - uses: actions/cache@v1
 | 
			
		||||
      id: tsbuild-cache
 | 
			
		||||
      with:
 | 
			
		||||
        path: buildcache.tsbuildinfo #the file you mention when build the project by passing parameter tsBuildInfoFile
 | 
			
		||||
        key: ${{ runner.os }}-tsbuild
 | 
			
		||||
        restore-keys: |
 | 
			
		||||
          ${{ runner.os }}-tsbuild
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## OCaml/Reason - esy
 | 
			
		||||
Esy allows you to export built dependencies and import pre-built dependencies.
 | 
			
		||||
```yaml
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user