mirror of
https://github.com/pnpm/action-setup.git
synced 2025-09-15 05:41:34 +08:00
15 lines
327 B
TypeScript
15 lines
327 B
TypeScript
import { setFailed } from '@actions/core'
|
|
import getInputs from './inputs'
|
|
import setOutputs from './outputs'
|
|
import install from './install'
|
|
|
|
const inputs = getInputs()
|
|
|
|
install(inputs).then(() => {
|
|
console.log('Installation Completed!')
|
|
setOutputs(inputs)
|
|
}).catch(error => {
|
|
console.error(error)
|
|
setFailed(error)
|
|
})
|