How do company earnings affect stock prices

How do quarterly earnings reports affect a company’s stock price?