Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[88] Add version script to build tools #119

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
4 changes: 2 additions & 2 deletions src/utils/increment-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ function incrementVersion(version, type) {
patch: 'prepatch',
});
const releaseType = releaseEnum[baseType] ? releaseEnum[baseType] : false;
semver.inc(version, releaseType, prerelease);
semver.inc(currentVersion, releaseType, prerelease);
}
return semver.inc(`${semver.inc(currentVersion, baseType)}-beta.0`, 'prerelease', 'beta');
return semver.inc(currentVersion, 'prerelease', prerelease, 0);
ampersarnie marked this conversation as resolved.
Show resolved Hide resolved
} else {
return semver.inc(currentVersion, baseType);
}
Expand Down