Skip to content

Commit

Permalink
Merge pull request #224 from dsotirakis/always-fetch-branches
Browse files Browse the repository at this point in the history
Tag events: Always fetch branches
  • Loading branch information
phips28 authored Oct 3, 2023
2 parents 95099cd + dfc3f13 commit b7e26dc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b7e26dc

Please sign in to comment.