mirror of
				https://github.com/pnpm/action-setup.git
				synced 2025-11-04 13:29:08 +08:00 
			
		
		
		
	Add more examples
This commit is contained in:
		
							
								
								
									
										27
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										27
									
								
								README.md
									
									
									
									
									
								
							@@ -28,7 +28,7 @@ If `run_install` is either `null` or `false`, pnpm will not install any npm pack
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
If `run_install` is `true`, pnpm will install dependencies recursively.
 | 
					If `run_install` is `true`, pnpm will install dependencies recursively.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
If `run_install` is a YAML representation of either an object or an array, pnpm will execute every install commands.
 | 
					If `run_install` is a YAML string representation of either an object or an array, pnpm will execute every install commands.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### `run_install.recursive`
 | 
					#### `run_install.recursive`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -54,6 +54,24 @@ Expanded path of inputs#bin_dest.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## Usage example
 | 
					## Usage example
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Just install PNPM
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```yaml
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  - push
 | 
				
			||||||
 | 
					  - pull_request
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  steps:
 | 
				
			||||||
 | 
					    - uses: pnpm/action-setup@v1.1.0
 | 
				
			||||||
 | 
					      with:
 | 
				
			||||||
 | 
					        version: 4.11.1
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Install PNPM and a few NPM packages
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```yaml
 | 
					```yaml
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  - push
 | 
					  - push
 | 
				
			||||||
@@ -68,9 +86,10 @@ jobs:
 | 
				
			|||||||
    - uses: pnpm/action-setup@v1.1.0
 | 
					    - uses: pnpm/action-setup@v1.1.0
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        version: 4.11.1
 | 
					        version: 4.11.1
 | 
				
			||||||
 | 
					        run_install: |
 | 
				
			||||||
    - name: Install dependencies
 | 
					          - recursive: true
 | 
				
			||||||
      run: pnpm install
 | 
					            args: [--frozen-lockfile, --strict-peer-dependencies]
 | 
				
			||||||
 | 
					          - args: [--global, gulp, prettier, typescript]
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Notes
 | 
					## Notes
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user