GM has shown record profits only because they declared bankruptcy and walked away from all their debts, bills, loans, and stockholders. They stiffed everybody.
If you wrote off all your bills and loans you would show record profit too.
With their marketing philosophy of producing cars based on wishful thinking that no one wants, they will be back in the garbage pit again shortly. When taxpayer subsidies of battery power, solar power and wind power end, as they must because we cannot afford them, they will become curious artifacts in local museums for future generations to laugh at.