COMMONS-290: Improve cleanupPublication option to publish a first version