diff --git a/src/main/js/processor/release.js b/src/main/js/processor/release.js index cf45efa..05a4d40 100644 --- a/src/main/js/processor/release.js +++ b/src/main/js/processor/release.js @@ -49,6 +49,7 @@ export const run = async ({cwd = process.cwd(), env, flags = {}} = {}) => within if (!pkg.releaseType) { report.setStatus('skipped', name) + pkg.skipped = true return } if (flags.build !== false) { diff --git a/src/main/js/steps/clean.js b/src/main/js/steps/clean.js index bc53f51..1edaaee 100644 --- a/src/main/js/steps/clean.js +++ b/src/main/js/steps/clean.js @@ -3,5 +3,5 @@ import {npmRestore} from '../api/npm.js' export const clean = async (cwd, packages) => { await unsetUserConfig(cwd) - await Promise.all(Object.values(packages).map(npmRestore)) + await Promise.all(Object.values(packages).filter(pkg => !pkg.skipped).map(npmRestore)) }