From dfc3f132b5ff746744717b731acf6a1c77229a54 Mon Sep 17 00:00:00 2001 From: dsotirakis Date: Tue, 3 Oct 2023 13:06:38 +0300 Subject: [PATCH] Always fetch --- index.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 8c02fff..ac818c9 100644 --- a/index.js +++ b/index.js @@ -205,11 +205,8 @@ const pkg = getPackageJson(); await runInWorkspace('git', ['commit', '-a', '-m', commitMessage.replace(/{{version}}/g, newVersion)]); } - // now go to the actual branch to perform the same versioning - if (isPullRequest) { - // First fetch to get updated local version of branch - await runInWorkspace('git', ['fetch']); - } + // First fetch to get updated local version of branch + await runInWorkspace('git', ['fetch']); await runInWorkspace('git', ['checkout', currentBranch]); await runInWorkspace('npm', ['version', '--allow-same-version=true', '--git-tag-version=false', current]); console.log('current 2:', current, '/', 'version:', version);