From 044466b91b03b788e98f56379bf3fd2c7b2d6f1b Mon Sep 17 00:00:00 2001 From: Jacob Lauritzen Date: Sat, 26 Sep 2020 14:29:49 +0200 Subject: [PATCH] Fetch local branches --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index a591ca5..b211ff7 100644 --- a/index.js +++ b/index.js @@ -54,6 +54,8 @@ Toolkit.run(async tools => { await tools.runInWorkspace('git', ['commit', '-a', '-m', `ci: ${commitMessage} ${newVersion}`]) // now go to the actual branch to perform the same versioning + // First fetch to get updated local version of branch + await tools.runInWorkspace('git', ['fetch']) await tools.runInWorkspace('git', ['checkout', currentBranch]) await tools.runInWorkspace('npm', ['version', '--allow-same-version=true', '--git-tag-version=false', current])