From 2e18e692ed2a84407d1b9a440183736a4241adc3 Mon Sep 17 00:00:00 2001 From: Eric Satterwhite Date: Fri, 22 Mar 2024 16:42:12 -0500 Subject: [PATCH] fix(config): include the dry-run param from input options be sure to include the dry-run flag from semantic release if provided. default to false --- lib/build-config.js | 2 ++ test/unit/build-config.js | 3 +++ 2 files changed, 5 insertions(+) diff --git a/lib/build-config.js b/lib/build-config.js index 0a854ef..39b4fd6 100644 --- a/lib/build-config.js +++ b/lib/build-config.js @@ -28,6 +28,7 @@ async function buildConfig(build_id, config, context) { , dockerNetwork: network = 'default' , dockerAutoClean: clean = true , dockerBuildQuiet: quiet = true + , 'dry-run': dry_run = false } = config let name = null @@ -57,6 +58,7 @@ async function buildConfig(build_id, config, context) { , publish , tags: array.toArray(tags) , verifycmd + , dry_run , args: { SRC_DIRECTORY: path.basename(context.cwd) , TARGET_PATH: target diff --git a/test/unit/build-config.js b/test/unit/build-config.js index 82adb88..3f57319 100644 --- a/test/unit/build-config.js +++ b/test/unit/build-config.js @@ -45,11 +45,13 @@ test('build-config', async (t) => { , context: '.' , quiet: true , clean: true + , dry_run: false }) }) t.test('nested workspace: target resolution', async (tt) => { const config = await buildConfig('id', { + 'dry-run': true }, { options: { root: t.testdirName @@ -77,6 +79,7 @@ test('build-config', async (t) => { , build: 'id' , context: '.' , quiet: true + , dry_run: true , clean: true }) })