Both happen - a warmer world makes some things scarcer, causing their price to rise, and companies raise prices because they think they can make a larger profit
It's been proved so many times now that companies are raising prices for no reason that connecting climate change to inflation doesn't help either situation.