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])