setup-pnpm/src/index.ts

17 lines
354 B
TypeScript
Raw Normal View History

2020-05-08 14:47:46 +08:00
import { setFailed } from '@actions/core'
2020-05-08 14:06:16 +08:00
import getInputs from './inputs'
2020-05-08 14:12:01 +08:00
import setOutputs from './outputs'
2020-05-08 14:06:16 +08:00
import install from './install'
2020-05-08 15:12:16 +08:00
async function main() {
2020-05-08 15:24:25 +08:00
const inputs = getInputs()
2020-05-08 22:55:03 +08:00
await install(inputs)
console.log('Installation Completed!')
setOutputs(inputs)
2020-05-08 15:12:16 +08:00
}
2020-05-08 14:06:16 +08:00
2020-05-08 15:12:16 +08:00
main().catch(error => {
2020-05-08 14:06:16 +08:00
console.error(error)
setFailed(error)
})