Sales in food stores were up 0.7% in June, the ONS said, while fuel sales rose 2.8%.
“The warm weather in June helped to brighten sales, with supermarket retailers reporting stronger trading and an increase in drink purchases,” said ONS senior statistician Hannah Finselbach.
“It was also a good month for fuel sales as consumers ventured out and about in the sunshine.”
The Met Office said that England had its warmest June on record, and the second warmest for the UK as a whole, following two heatwaves.