mirror of
https://github.com/pnpm/action-setup.git
synced 2026-03-01 07:51:02 +08:00
Actually check for run_install before store_prune, to match documentation
This commit is contained in:
parent
14f23f2699
commit
40fbc12c16
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -4,13 +4,13 @@ import { Inputs } from '../inputs'
|
||||
import { patchPnpmEnv } from '../utils'
|
||||
|
||||
export function pruneStore(inputs: Inputs) {
|
||||
if (!inputs.storePrune) {
|
||||
console.log('Store pruning is disabled, skipping pnpm store prune.')
|
||||
if (inputs.runInstall.length === 0) {
|
||||
console.log('No install commands were run, skipping pnpm store prune, remember to run it after pnpm install if caching the store.')
|
||||
return
|
||||
}
|
||||
|
||||
if (inputs.runInstall.length === 0) {
|
||||
console.log('No install commands were run, skipping pnpm store prune, remember to run it after pnpm install if caching the store.')
|
||||
if (!inputs.storePrune) {
|
||||
console.log('Store pruning is disabled, skipping pnpm store prune.')
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user