PLF-5480: Improve cleanupPublication option to publish a first version