Fetch local branches

This commit is contained in:
Jacob Lauritzen 2020-09-26 14:29:49 +02:00 committed by GitHub
parent c3025e2dfa
commit 044466b91b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

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