Clean environment before publishing