mirror of
https://code.forgejo.org/pnpm/action-setup.git
synced 2025-05-20 05:14:45 +00:00
Fix pruneStore
This commit is contained in:
parent
2546768411
commit
b1febf84ed
4 changed files with 14 additions and 7 deletions
|
@ -1,6 +1,7 @@
|
|||
import { spawnSync } from 'child_process'
|
||||
import { setFailed } from '@actions/core'
|
||||
import { Inputs } from '../inputs'
|
||||
import { patchPnpmEnv } from '../utils'
|
||||
|
||||
export function pruneStore(inputs: Inputs) {
|
||||
if (inputs.runInstall.length === 0) {
|
||||
|
@ -11,6 +12,8 @@ export function pruneStore(inputs: Inputs) {
|
|||
console.log('Running pnpm store prune')
|
||||
const { error, status } = spawnSync('pnpm', ['store', 'prune'], {
|
||||
stdio: 'inherit',
|
||||
shell: true,
|
||||
env: patchPnpmEnv(inputs)
|
||||
})
|
||||
|
||||
if (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue