Skip to content

Commit 10b1aaa

Browse files
committed
Made package.json files to use only Major.Minor.Patch versioning
Made package.json files to use only Major.Minor.Patch versioning. This should also reduce the PR noise to update github per builds.
1 parent 68dd86b commit 10b1aaa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Build/Tasks/SetPackageVersions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ public override void Run(Context context)
3232
// Set all package.json in Admin Experience to the current version and to consume the current (local) version of dnn-react-common.
3333
foreach (var file in packages)
3434
{
35-
context.Information($"Updating {file} to version {context.Version.SemVer}");
35+
context.Information($"Updating {file} to version {context.Version.MajorMinorPatch}");
3636
context.ReplaceRegexInFiles(
3737
file.ToString(),
3838
@"""version"": "".*""",
39-
$@"""version"": ""{context.Version.SemVer}""");
39+
$@"""version"": ""{context.Version.MajorMinorPatch}""");
4040
context.ReplaceRegexInFiles(
4141
file.ToString(),
4242
@"""@dnnsoftware\/dnn-react-common"": "".*""",
43-
$@"""@dnnsoftware/dnn-react-common"": ""{context.Version.SemVer}""");
43+
$@"""@dnnsoftware/dnn-react-common"": ""{context.Version.MajorMinorPatch}""");
4444
}
4545
}
4646
}

0 commit comments

Comments
 (0)