Fix pruneStore

This commit is contained in:
khai96_
2020-05-09 21:41:25 +07:00
parent 2546768411
commit b1febf84ed
4 changed files with 14 additions and 7 deletions

View File

@@ -1,14 +1,10 @@
import process from 'process'
import path from 'path'
import { spawnSync } from 'child_process'
import { setFailed } from '@actions/core'
import { Inputs } from '../inputs'
import { patchPnpmEnv } from '../utils'
export function runPnpmInstall(inputs: Inputs) {
const env = {
...process.env,
PATH: inputs.binDest + path.delimiter + process.env.PATH
}
const env = patchPnpmEnv(inputs)
for (const options of inputs.runInstall) {
const args = ['install']