Add prepublish check