mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 01:23:34 +00:00 
			
		
		
		
	Update advanced-usage.md
This commit is contained in:
		
							parent
							
								
									388560221b
								
							
						
					
					
						commit
						6c0bbfaf7d
					
				@ -19,7 +19,7 @@ Ensure that `package-lock.json` is always committed, use `npm ci` instead of `np
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
### Yarn
 | 
					### Yarn
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Ensure that `yarn.lock` is always committed, pass `--frozen-lockfile` or `--immutable-cache` to `yarn install` when installing packages.
 | 
					Ensure that `yarn.lock` is always committed, pass `--frozen-lockfile` or `--immutable` to `yarn install` when installing packages.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
**See also:**
 | 
					**See also:**
 | 
				
			||||||
- [Documentation of `yarn.lock`](https://classic.yarnpkg.com/en/docs/yarn-lock)
 | 
					- [Documentation of `yarn.lock`](https://classic.yarnpkg.com/en/docs/yarn-lock)
 | 
				
			||||||
@ -102,7 +102,8 @@ steps:
 | 
				
			|||||||
  with:
 | 
					  with:
 | 
				
			||||||
    node-version: '14'
 | 
					    node-version: '14'
 | 
				
			||||||
    cache: 'yarn'
 | 
					    cache: 'yarn'
 | 
				
			||||||
- run: yarn install --immutable-cache
 | 
					- run: yarn install --frozen-lockfile
 | 
				
			||||||
 | 
					# - run: yarn install --immutable
 | 
				
			||||||
- run: yarn test
 | 
					- run: yarn test
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user