build before publish