Skip to content

Commit de5194b

Browse files
csharpfritzCopilot
andcommitted
fix(build): fix NBGV version propagation for NuGet and Docker
- Delete src/version.json (stale at 0.13, was overriding root version.json 0.15) - Add tag ref pattern to publicReleaseRefSpec so tag-triggered builds produce clean release versions without prerelease suffixes Root cause: NBGV walks up from the project directory and finds the closest version.json. The src/version.json (0.13) was found before root version.json (0.15), causing all library builds to use version 0.13.x. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8885e7c commit de5194b

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

src/version.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

version.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"publicReleaseRefSpec": [
55
"^refs/heads/master$",
66
"^refs/heads/main$",
7-
"^refs/heads/v\\d+(?:\\.\\d+)?$"
7+
"^refs/heads/v\\d+(?:\\.\\d+)?$",
8+
"^refs/tags/v\\d+\\.\\d+(\\.\\d+)?$"
89
],
910
"cloudBuild": {
1011
"buildNumber": {

0 commit comments

Comments
 (0)