Rebuild before publish