mirror of
https://github.com/pnpm/action-setup.git
synced 2025-09-12 20:31:35 +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)
|
||
|
})
|