Merge pull request #225 from phips28/revert-224-always-fetch-branches
Revert "Tag events: Always fetch branches"
This commit is contained in:
commit
0a70848e94
7
index.js
7
index.js
|
@ -205,8 +205,11 @@ const pkg = getPackageJson();
|
||||||
await runInWorkspace('git', ['commit', '-a', '-m', commitMessage.replace(/{{version}}/g, newVersion)]);
|
await runInWorkspace('git', ['commit', '-a', '-m', commitMessage.replace(/{{version}}/g, newVersion)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// First fetch to get updated local version of branch
|
// now go to the actual branch to perform the same versioning
|
||||||
await runInWorkspace('git', ['fetch']);
|
if (isPullRequest) {
|
||||||
|
// First fetch to get updated local version of branch
|
||||||
|
await runInWorkspace('git', ['fetch']);
|
||||||
|
}
|
||||||
await runInWorkspace('git', ['checkout', currentBranch]);
|
await runInWorkspace('git', ['checkout', currentBranch]);
|
||||||
await runInWorkspace('npm', ['version', '--allow-same-version=true', '--git-tag-version=false', current]);
|
await runInWorkspace('npm', ['version', '--allow-same-version=true', '--git-tag-version=false', current]);
|
||||||
console.log('current 2:', current, '/', 'version:', version);
|
console.log('current 2:', current, '/', 'version:', version);
|
||||||
|
|
Loading…
Reference in New Issue