@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.
Files changed (2) hide show
  1. package/ci/cli.js +4 -1
  2. 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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farris/cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Farris command line interface",
5
5
  "main": "index.js",
6
6
  "scripts": {