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