Publishes a Recipe object to the active backend (local JSON registry or remote API).
Examples
set_backend("local", path = tempfile(fileext = ".json"))
r <- recipe(
name = "Example", user = "Test",
svy = survey_empty(type = "ech", edition = "2023"),
description = "Example recipe"
)
publish_recipe(r)
length(list_recipes())
#> [1] 1