mirror of
https://github.com/pnpm/action-setup.git
synced 2025-09-14 13:21:34 +08:00
18 lines
417 B
TypeScript
18 lines
417 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
|