mirror of
				https://github.com/pnpm/action-setup.git
				synced 2025-11-04 13:29:08 +08:00 
			
		
		
		
	Make some tweaks to example code snippets
This commit is contained in:
		
							
								
								
									
										10
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
									
									
									
									
								
							@@ -67,7 +67,7 @@ jobs:
 | 
				
			|||||||
  steps:
 | 
					  steps:
 | 
				
			||||||
    - uses: pnpm/action-setup@v1.2.1
 | 
					    - uses: pnpm/action-setup@v1.2.1
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        version: 4.11.1
 | 
					        version: 5.17.2
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Install PNPM and a few NPM packages
 | 
					### Install PNPM and a few NPM packages
 | 
				
			||||||
@@ -85,16 +85,14 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    - uses: pnpm/action-setup@v1.2.1
 | 
					    - uses: pnpm/action-setup@v1.2.1
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        version: 4.11.1
 | 
					        version: 5.17.2
 | 
				
			||||||
        run_install: |
 | 
					        run_install: |
 | 
				
			||||||
          - recursive: true
 | 
					          - recursive: true
 | 
				
			||||||
            args: [--frozen-lockfile, --strict-peer-dependencies]
 | 
					            args: [--frozen-lockfile, --strict-peer-dependencies]
 | 
				
			||||||
          - args: [--global, gulp, prettier, typescript]
 | 
					          - args: [--global, gulp, prettier, typescript]
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Cache
 | 
					### Use cache to reduce installation time
 | 
				
			||||||
 | 
					 | 
				
			||||||
To speed up install times
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
```yaml
 | 
					```yaml
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
@@ -124,7 +122,7 @@ jobs:
 | 
				
			|||||||
          run_install: true
 | 
					          run_install: true
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
You don't need to run `pnpm store prune` at the end; this package will take care of that for you.
 | 
					**Note:** You don't need to run `pnpm store prune` at the end; post-action has already taken care of that.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Notes
 | 
					## Notes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user