mirror of
https://github.com/pnpm/action-setup.git
synced 2025-09-13 12:51:36 +08:00
Complete basic
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
import { setFailed } from '@actions/core'
|
||||
import getInputs from '../inputs'
|
||||
import { Inputs } from '../inputs'
|
||||
import runSelfInstaller from './run'
|
||||
|
||||
export { runSelfInstaller }
|
||||
|
||||
export async function install() {
|
||||
const { error, status } = await runSelfInstaller(getInputs())
|
||||
|
||||
if (error) return setFailed(error)
|
||||
|
||||
export async function install(inputs: Inputs) {
|
||||
const status = await runSelfInstaller(inputs)
|
||||
if (status) {
|
||||
return setFailed(`Something does wrong, self-installer exits with code ${status}`)
|
||||
}
|
||||
|
Reference in New Issue
Block a user