This commit is contained in:
Alex 2026-02-19 01:55:12 -08:00 committed by GitHub
commit f213155a20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 9 deletions

BIN
dist/index.js vendored

Binary file not shown.

View File

@ -1,16 +1,27 @@
import { setFailed, startGroup, endGroup } from '@actions/core'
import { Inputs } from '../inputs'
import runSelfInstaller from './run'
import { setFailed, startGroup, endGroup } from "@actions/core";
import { Inputs } from "../inputs";
import runSelfInstaller from "./run";
import { exec } from "child_process";
import { promisify } from "util";
export { runSelfInstaller }
export { runSelfInstaller };
const execAsync = promisify(exec);
export async function install(inputs: Inputs) {
startGroup('Running self-installer...')
const status = await runSelfInstaller(inputs)
endGroup()
try {
await execAsync("pnpm --version");
return;
} catch {}
startGroup("Running self-installer...");
const status = await runSelfInstaller(inputs);
endGroup();
if (status) {
return setFailed(`Something went wrong, self-installer exits with code ${status}`)
return setFailed(
`Something went wrong, self-installer exits with code ${status}`,
);
}
}
export default install
export default install;