Hi @sarathi125 ,
I am not quite sure if this is the Solution that is required, but if the Enforce Analyzer is Disabled, then we’ll be able to Publish the Project even with the Errors. Maybe the Configuration is disabled in your Studio and hence you do not get any Error From Publishing.
If there are errors in the Project and Enforce Analyzer is enabled, then there is an Error Thrown as below :

Let us know if you are still looking for a Different way of Setting up the Prevention of Publishing.
