check build before publishing