mirror of
https://github.com/pnpm/action-setup.git
synced 2026-03-17 07:46:13 +08:00
feat: store caching (#188)
* add pnpm store caching * style: format * no semicolons * no star imports * import order * style: no star imports --------- Co-authored-by: khai96_ <hvksmr1996@gmail.com>
This commit is contained in:
@@ -5,6 +5,8 @@ import { RunInstall, parseRunInstall } from './run-install'
|
||||
export interface Inputs {
|
||||
readonly version?: string
|
||||
readonly dest: string
|
||||
readonly cache: boolean
|
||||
readonly cacheDependencyPath: string
|
||||
readonly runInstall: RunInstall[]
|
||||
readonly packageJsonFile: string
|
||||
readonly standalone: boolean
|
||||
@@ -19,6 +21,8 @@ const parseInputPath = (name: string) => expandTilde(getInput(name, options))
|
||||
export const getInputs = (): Inputs => ({
|
||||
version: getInput('version'),
|
||||
dest: parseInputPath('dest'),
|
||||
cache: getBooleanInput('cache'),
|
||||
cacheDependencyPath: parseInputPath('cache_dependency_path'),
|
||||
runInstall: parseRunInstall('run_install'),
|
||||
packageJsonFile: parseInputPath('package_json_file'),
|
||||
standalone: getBooleanInput('standalone'),
|
||||
|
||||
Reference in New Issue
Block a user