Skip to content

Commit f9ba41b

Browse files
committed
fix: minor version bump patch version should be 0
1 parent 50f92b8 commit f9ba41b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gulpfile.js/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,9 @@ function _patchBumpConfigFile(fileName) {
198198

199199
function _minorBumpConfigFile(fileName) {
200200
let config = JSON.parse(fs.readFileSync(fileName, 'utf8'));
201-
let version = config.apiVersion .split("."); // ["3","0","0"]
202-
version[1] = "" + (parseInt(version[1]) + 1); // ["3","1","0"]
201+
let version = config.apiVersion .split("."); // ["3","0","5"]
202+
version[1] = "" + (parseInt(version[1]) + 1); // ["3","1","5"]
203+
version[2] = "0"; // ["3","1","0"]
203204
config.apiVersion = version.join("."); // 3.1.0
204205
config.version = `${config.apiVersion}-0`; // 3.1.0-0 . The final build number is always "-0" as the build number
205206
// is generated by release scripts only and never checked in source.

0 commit comments

Comments
 (0)