mirror of
https://github.com/pnpm/action-setup.git
synced 2026-01-14 20:41:17 +08:00
18 lines
413 B
TypeScript
18 lines
413 B
TypeScript
import { setFailed } from '@actions/core'
|
|
import getInputs from '../inputs'
|
|
import runSelfInstaller from './run'
|
|
|
|
export { runSelfInstaller }
|
|
|
|
export async function install() {
|
|
const { error, status } = await runSelfInstaller(getInputs())
|
|
|
|
if (error) return setFailed(error)
|
|
|
|
if (status) {
|
|
return setFailed(`Something does wrong, self-installer exits with code ${status}`)
|
|
}
|
|
}
|
|
|
|
export default install
|