Supercurrent-induced topological phase transitions