handle new publish case for versions