From 6db3b6b98f552bb8b147d70e98fc37e76e6a6b7e Mon Sep 17 00:00:00 2001 From: Romain Lenzotti Date: Fri, 22 Mar 2024 08:14:17 +0100 Subject: [PATCH] fix: move refreshInstall after building workspaces step --- packages/monorepo/semantic-release.js | 1 + packages/monorepo/src/utils/packages/newVersion.js | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/monorepo/semantic-release.js b/packages/monorepo/semantic-release.js index 86f463f..ce9f585 100644 --- a/packages/monorepo/semantic-release.js +++ b/packages/monorepo/semantic-release.js @@ -22,6 +22,7 @@ export async function prepare(pluginConfig, context) { await monoRepo.newVersion({version}); await monoRepo.build("workspace"); + await monoRepo.manager.refreshInstall(); await monoRepo.commitChanges({version}); } diff --git a/packages/monorepo/src/utils/packages/newVersion.js b/packages/monorepo/src/utils/packages/newVersion.js index 4f505e0..e6cb993 100644 --- a/packages/monorepo/src/utils/packages/newVersion.js +++ b/packages/monorepo/src/utils/packages/newVersion.js @@ -12,10 +12,4 @@ export async function newVersion(context) { } await context.manager.newVersion(context.version, context); - - try { - await context.manager.refreshInstall(); - } catch (er) { - console.warn(er); - } }