1
0
mirror of https://github.com/pnpm/action-setup.git synced 2026-07-08 17:43:45 +08:00

Compare commits

..

2 Commits

Author SHA1 Message Date
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
2 changed files with 10 additions and 21 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,27 +1,16 @@
import { setFailed, startGroup, endGroup } from "@actions/core";
import { Inputs } from "../inputs";
import runSelfInstaller from "./run";
import { exec } from "child_process";
import { promisify } from "util";
import { setFailed, startGroup, endGroup } from '@actions/core'
import { Inputs } from '../inputs'
import runSelfInstaller from './run'
export { runSelfInstaller };
const execAsync = promisify(exec);
export { runSelfInstaller }
export async function install(inputs: Inputs) {
try {
await execAsync("pnpm --version");
return;
} catch {}
startGroup("Running self-installer...");
const status = await runSelfInstaller(inputs);
endGroup();
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