mirror of
https://code.forgejo.org/pnpm/action-setup.git
synced 2025-05-18 12:34:46 +00:00
19 lines
485 B
TypeScript
19 lines
485 B
TypeScript
![]() |
import { spawnSync } from 'child_process'
|
||
|
import { downloadSelfInstaller } from '../self-installer'
|
||
|
import { Inputs } from '../inputs'
|
||
|
|
||
|
export async function runSelfInstaller(inputs: Inputs) {
|
||
|
return spawnSync('node', {
|
||
|
env: {
|
||
|
PNPM_VERSION: inputs.version,
|
||
|
PNPM_DEST: inputs.dest,
|
||
|
PNPM_BIN_DEST: inputs.binDest,
|
||
|
PNPM_REGISTRY: inputs.registry,
|
||
|
},
|
||
|
input: await downloadSelfInstaller(),
|
||
|
stdio: 'inherit',
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export default runSelfInstaller
|