mirror of
https://github.com/ditkrg/project-version-check.git
synced 2026-01-25 15:22:59 +00:00
2
index.js
2
index.js
@@ -10,7 +10,7 @@ try {
|
||||
|
||||
const version = require('./package.json').version;
|
||||
// the version is in semantic format, so we can split it by dot
|
||||
const versionParts = version.substring(1).split('.');
|
||||
const versionParts = version.split('.');
|
||||
if (label === 'major')
|
||||
versionParts[0] = parseInt(versionParts[0]) + 1;
|
||||
else if (label == 'minor')
|
||||
|
||||
Reference in New Issue
Block a user