How does earnings affect stock price

How do earnings reports affect the valuation of a stock?