Check if publish is active before publishing.