Merge pull request #224 from dsotirakis/always-fetch-branches

Tag events: Always fetch branches
This commit is contained in:
Phil 2023-10-03 13:12:55 +02:00 committed by GitHub
當前提交 b7e26dc6c2
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 2 次插入5 次删除

查看文件

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