Make build fail if publishing fails.