Most of the mining happening in China, for instance, is happening near non-CO2 emitting plants (hydropower, wind) where energy is virtually free most of the time. The increased demand for energy that is otherwise of little value may in fact be financing a rollout for renewable energy. The primary problem with renewables like wind power today is not production capacity, it is storage.
It stands to reason that at least some mining temporarily leads to increased CO2 emissions due to revenue exceeding the cost of fossil fuels. However, this only happens in the short term, because of difficulty adjusting revenue to the point where only the very cheapest energy sources remain competitive, and these are not fossil fuels. Furthermore, the increased demand for more efficient semiconductors finances the R&D required to lower the power usage of all computing into the indefinite future.