Run generate before publishing