mirror of
https://code.forgejo.org/pnpm/action-setup.git
synced 2025-06-07 12:51:10 +00:00
feat: try support packageManager
This commit is contained in:
parent
ad2b35ae0c
commit
1d51e20937
6 changed files with 94 additions and 45 deletions
src/inputs
|
@ -3,7 +3,7 @@ import expandTilde from 'expand-tilde'
|
|||
import { RunInstall, parseRunInstall } from './run-install'
|
||||
|
||||
export interface Inputs {
|
||||
readonly version: string
|
||||
readonly version?: string
|
||||
readonly dest: string
|
||||
readonly runInstall: RunInstall[]
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ const options: InputOptions = {
|
|||
const parseInputPath = (name: string) => expandTilde(getInput(name, options))
|
||||
|
||||
export const getInputs = (): Inputs => ({
|
||||
version: getInput('version', options),
|
||||
version: getInput('version'),
|
||||
dest: parseInputPath('dest'),
|
||||
runInstall: parseRunInstall('run_install'),
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue