Add check for tag before publish.