mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2026-04-15 19:39:53 +00:00
Add version type as output
This commit is contained in:
parent
b505a7cf06
commit
e1e99bd214
13 changed files with 51 additions and 33 deletions
|
|
@ -15,12 +15,13 @@ export async function runAction(configurationProvider: ConfigurationProvider): P
|
|||
const userFormatter = configurationProvider.GetUserFormatter();
|
||||
|
||||
if (await currentCommitResolver.IsEmptyRepoAsync()) {
|
||||
let versionInfo = new VersionInformation(0, 0, 0, 0, VersionType.None, [], false);
|
||||
const versionInfo = new VersionInformation(0, 0, 0, 0, VersionType.None, [], false);
|
||||
return new VersionResult(
|
||||
versionInfo.major,
|
||||
versionInfo.minor,
|
||||
versionInfo.patch,
|
||||
versionInfo.increment,
|
||||
versionInfo.type,
|
||||
versionFormatter.Format(versionInfo),
|
||||
tagFormmater.Format(versionInfo),
|
||||
versionInfo.changed,
|
||||
|
|
@ -60,6 +61,7 @@ export async function runAction(configurationProvider: ConfigurationProvider): P
|
|||
versionInfo.minor,
|
||||
versionInfo.patch,
|
||||
versionInfo.increment,
|
||||
versionInfo.type,
|
||||
versionFormatter.Format(versionInfo),
|
||||
tagFormmater.Format(versionInfo),
|
||||
versionInfo.changed,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue