@farris/cli 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
|