@farris/cli 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- package/ci/cli.js +4 -1
- package/package.json +1 -1
package/ci/cli.js
CHANGED
@@ -104,7 +104,10 @@ function updateProjectPrereleaseVersion(projectPath) {
|
|
104
104
|
childProcess.execSync('git', ['commit', '-m', `update ${packageConfig.name} prerelease version to ${updatedVersion}`]);
|
105
105
|
console.log(`update ${packageConfig.name} prerelease version to ${updatedVersion}`);
|
106
106
|
// 提交变更集
|
107
|
-
return childProcess.exec('git', ['push']);
|
107
|
+
// return childProcess.exec('git', ['push']);
|
108
|
+
const branch = childProcess.execSync("git", ["rev-parse", "--abbrev-ref", "HEAD"]);
|
109
|
+
console.log(`executing git push origin ${branch}`);
|
110
|
+
return childProcess.exec("git", ["push", 'origin', branch]);
|
108
111
|
})
|
109
112
|
}
|
110
113
|
|