I read it in ‘81/82 as a preteen. It was about two girls of about 12, best friends, who made a pact not to grow up. Over one summer they embarked on an anorexia pact and one of them died. The other recovers iirc and she was always led by her friend rather than truly wanting to go through with it. Part of her regrets not following her friend though.
I don’t think I entirely understood what was going on and the idea of not wanting to get older wasn’t something I’d ever considered.
It was a British or European book, rather than an American one, so not Judy Blume or Barbara Wersba (which I also read).
I’m sure Summer was in the title but googling likely combinations hasn’t brought anything up.
I’d like to read it again to see if it was as mawkish as it sounds. I remember it as very thought-provoking and troubling, with maybe a folk horror/magic aspect to it?