mirror of
https://github.com/pnpm/action-setup.git
synced 2025-03-14 22:54:35 +08:00
15 lines
373 B
TypeScript
15 lines
373 B
TypeScript
import { setFailed } from '@actions/core'
|
|
import { Inputs } from '../inputs'
|
|
import runSelfInstaller from './run'
|
|
|
|
export { runSelfInstaller }
|
|
|
|
export async function install(inputs: Inputs) {
|
|
const status = await runSelfInstaller(inputs)
|
|
if (status) {
|
|
return setFailed(`Something does wrong, self-installer exits with code ${status}`)
|
|
}
|
|
}
|
|
|
|
export default install
|