diff --git a/dist/index.js b/dist/index.js index c71deda..98ad529 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/src/pnpm-store-prune/index.ts b/src/pnpm-store-prune/index.ts index 1c3a85f..51814ea 100644 --- a/src/pnpm-store-prune/index.ts +++ b/src/pnpm-store-prune/index.ts @@ -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 }