mirror of
https://github.com/pnpm/action-setup.git
synced 2025-09-11 11:51:36 +08:00
22 lines
476 B
TypeScript
22 lines
476 B
TypeScript
![]() |
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
|