Add firebase service and make publish functional.