fix: validate Godot package version without MSBuild
Publish NuGet packages / publish (push) Successful in 53s

This commit is contained in:
2026-09-05 04:17:31 +08:00
parent 3f92962215
commit 77adb61b3b
+1 -1
View File
@@ -108,7 +108,7 @@ jobs:
if [[ -f package.json ]]; then
version="$(node -p "require('./package.json').version")"
else
version="$(dotnet msbuild "${projects[0]}" -getProperty:Version -nologo)"
version="$(sed -n 's:.*<Version>\([^<]*\)</Version>.*:\1:p' "${projects[0]}" | head -n 1)"
fi
test "$tag" = "v$version"
mkdir -p packages