Stellar formation

A gas core contracts substantially under gravity. What is the expected effect on the core's thermal state during contraction?