North Yorkshire school has been become one of the top-performing eco-schools in the country.