Skip to content

Commit de9ee27

Browse files
committed
Merge branch 'dev'
2 parents 3c52175 + fe48193 commit de9ee27

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/commands/PublishCommand.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,17 @@ namespace vix::commands
934934
return 1;
935935
}
936936

937+
// Ensure versions exists and is an object
938+
if (!entry.contains("versions") || !entry["versions"].is_object())
939+
entry["versions"] = json::object();
940+
941+
// Always include the version being published so registry PR validates.
942+
// This avoids relying on the index_from_tags workflow before merge.
943+
entry["versions"][opt.version] = json::object({
944+
{"tag", tag},
945+
{"commit", commit},
946+
});
947+
937948
if (opt.dryRun)
938949
{
939950
vix::cli::util::ok_line(std::cout, "dry-run: would update: " + entryPath.string());

0 commit comments

Comments
 (0)