mirror of
https://github.com/pnpm/action-setup.git
synced 2025-12-10 22:43:32 +08:00
* add pnpm store caching * style: format * no semicolons * no star imports * import order * style: no star imports --------- Co-authored-by: khai96_ <hvksmr1996@gmail.com>
16 lines
319 B
TypeScript
16 lines
319 B
TypeScript
import { setFailed } from '@actions/core'
|
|
import { Inputs } from '../inputs'
|
|
import { runSaveCache } from './run'
|
|
|
|
export async function saveCache(inputs: Inputs) {
|
|
if (!inputs.cache) return
|
|
|
|
try {
|
|
await runSaveCache()
|
|
} catch (error) {
|
|
setFailed((error as Error).message)
|
|
}
|
|
}
|
|
|
|
export default saveCache
|