Skip to content

Commit

Permalink
Revert "Drop BuildMetadata from NPM package version
Browse files Browse the repository at this point in the history
"

This reverts commit 5e1adb5.

Fixes #943
  • Loading branch information
AArnott committed May 17, 2023
1 parent 518ee61 commit b36f1fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NerdBank.GitVersioning/VersionOracle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public IDictionary<string, string> CloudBuildVersionVars
/// <summary>
/// Gets the version to use for NPM packages.
/// </summary>
public string NpmPackageVersion => $"{this.Version.ToStringSafe(3)}{this.PrereleaseVersion}";
public string NpmPackageVersion => this.SemVer2;

/// <summary>
/// Gets a SemVer 1.0 compliant string that represents this version, including the -COMMITID suffix
Expand Down

0 comments on commit b36f1fe

Please sign in to comment.