Compare commits

...

7 Commits

Author SHA1 Message Date
Alex
87e93ca41f
Merge 29985b169f into fc06bc1257 2026-03-13 11:12:12 +00:00
Zoltan Kochan
fc06bc1257
feat!: run the action on Node.js 24 (#205) 2026-03-13 11:30:26 +01:00
Zoltan Kochan
b906affcce
Revert "feat!: run the action on Node.js 24 (#205)"
This reverts commit 9b5745cdf0.
2026-03-11 15:54:42 +01:00
Alexander Hornung
29985b169f Build 2026-02-05 13:24:45 +11:00
Alexander Hornung
4a8f7ada16 Revert old styling 2026-02-05 13:21:54 +11:00
Alexander Hornung
b2ad3f504b Remove unnecessary comments 2026-02-05 13:09:28 +11:00
Alexander Hornung
ab72e3e12e fix: check if pnpm already installed (#176) 2026-02-04 20:48:16 +11:00
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;