Always fetch
This commit is contained in:
parent
95099cd5ed
commit
dfc3f132b5
7
index.js
7
index.js
|
@ -205,11 +205,8 @@ 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)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// now go to the actual branch to perform the same versioning
|
// First fetch to get updated local version of branch
|
||||||
if (isPullRequest) {
|
await runInWorkspace('git', ['fetch']);
|
||||||
// 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