mirror of
				https://github.com/pnpm/action-setup.git
				synced 2025-11-01 01:42:13 +08:00 
			
		
		
		
	Create some files
This commit is contained in:
		
							
								
								
									
										21
									
								
								src/inputs/index.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								src/inputs/index.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| import { getInput, InputOptions } from '@actions/core' | ||||
|  | ||||
| export interface Inputs { | ||||
|   readonly version: string | ||||
|   readonly dest: string | ||||
|   readonly binDest: string | ||||
|   readonly registry: string | ||||
| } | ||||
|  | ||||
| const options: InputOptions = { | ||||
|   required: true, | ||||
| } | ||||
|  | ||||
| export const getInputs = (): Inputs => ({ | ||||
|   version: getInput('version', options), | ||||
|   dest: getInput('dest', options), | ||||
|   binDest: getInput('bin_dest', options), | ||||
|   registry: getInput('registry', options), | ||||
| }) | ||||
|  | ||||
| export default getInputs | ||||
		Reference in New Issue
	
	Block a user