@farris/cli 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/ci/cli.js +3 -3
- package/package.json +1 -1
package/ci/cli.js
CHANGED
@@ -102,16 +102,16 @@ function updateProjectPrereleaseVersion(projectPath, projectUrl) {
|
|
102
102
|
// 向git缓冲区中添加变更
|
103
103
|
childProcess.execSync('git', ['add', '.']);
|
104
104
|
// 提交变更记录
|
105
|
-
childProcess.execSync('git', ['commit', '-m', `update ${packageConfig.name} prerelease version to ${updatedVersion}`]);
|
105
|
+
childProcess.execSync('git', ['commit', '-m', `update ${packageConfig.name} prerelease version to ${updatedVersion}. [skip ci]`]);
|
106
106
|
console.log(`update ${packageConfig.name} prerelease version to ${updatedVersion}`);
|
107
107
|
|
108
108
|
const branch = childProcess.execSync("git", ["rev-parse", "--abbrev-ref", "HEAD"]);
|
109
109
|
console.log(`executing git push ${branch}`);
|
110
110
|
// 提交变更集
|
111
111
|
if (projectUrl) {
|
112
|
-
return childProcess.exec("git", ["push", projectUrl]);
|
112
|
+
return childProcess.exec("git", ["push", '-o', 'ci.skip', projectUrl]);
|
113
113
|
} else {
|
114
|
-
return childProcess.exec('git', ['push']);
|
114
|
+
return childProcess.exec('git', ['push', '-o', 'ci.skip']);
|
115
115
|
}
|
116
116
|
})
|
117
117
|
}
|