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

Compare commits

..

3 Commits

Author SHA1 Message Date
Zoltan Kochan
c147d3f3ca feat!: drop Node.js 24 support 2026-02-17 13:28:17 +01:00
Zoltan Kochan
9a52a9ef25 Merge remote-tracking branch 'origin/master' into update-node 2026-02-17 13:26:46 +01:00
Zoltan Kochan
aeb1c1fbbe feat!: drop Node.js 22 support 2026-02-17 13:24:55 +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