Do you use a comma or semicolon before however?
Both are possible when however is used as a conjunctive adverb to mean โbut.โ
We put a semicolon before however when it is showing contrast between two independent clauses (e.g., โWe have not reached our goal; however, we are only at the beginning of our journeyโ).
We put a comma before however when it is used at the beginning or at the end of a sentence or clause (e.g. โWe are, however, only at the beginning,โ โWe are only at the beginning, howeverโ).
Read this FAQ: Do you use a comma or semicolon before however?