From 8cbe4d3dd65fdd72e8815640cba23e2ce4c48036 Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Tue, 20 Sep 2022 12:52:52 +0200 Subject: [PATCH] npm publish: Add --force-publish flag to lerna --- bin/plugin/commands/packages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/plugin/commands/packages.js b/bin/plugin/commands/packages.js index b9581fc5318fe9..09fdf24d24b0a9 100644 --- a/bin/plugin/commands/packages.js +++ b/bin/plugin/commands/packages.js @@ -380,7 +380,7 @@ async function publishPackagesToNpm( { } else if ( [ 'bugfix', 'wp' ].includes( releaseType ) ) { log( '>> Publishing modified packages to npm.' ); await command( - `npx lerna publish ${ minimumVersionBump } --dist-tag ${ distTag } --no-private ${ yesFlag } ${ noVerifyAccessFlag }`, + `npx lerna publish ${ minimumVersionBump } --dist-tag ${ distTag } --no-private ${ yesFlag } ${ noVerifyAccessFlag } --force-publish`, { cwd: gitWorkingDirectoryPath, stdio: 'inherit',