Light years are huge distances. One light-year is 63 thousand times larger than the distance between the Earth and the Sun. Even a mighty supernova would not fry you from a distance of a light-year or more.
Here's a quotation with the effects of a supernova by distance [1]
An Earth like planet would be reduced to a cinder and thrown into interstellar space, even if it were thousands of times further from its star than Earth is from the Sun. Further out…
At 2 to 5 light years: A bright blue point of light appears in the sky, growing to sun-like brightness over 14 to 30 days. Effects include increased surface temperatures, wildfires, extreme weather, melting of ice caps, lethal radiation levels, total ozone layer loss, and chemical changes to the atmosphere.
At 20 to 50 light years: The blue light outshines a full moon a thousand times. Radiation levels cause cancers, sterility, birth defects, massive ozone layer loss ( 50% +) , high altitude nitrous oxide smog, increased cloud cover, loss of satellite networks, and lethal radiation dose to astronauts. Other possible effects include an worldwide lightning storms and dementia in humans and animals.
At 100 to 250 light years: The blue light is comparable to full moon, and radiation causes a measurable spike in cancer and birth defect rates. Other effects include satellite disruption similar to the worst solar storms, increased frequency of lightning strikes, erratic behaviour and memory loss in mammals, and disruption to circadian rhythms.
A world within 20 light years of the supernova may be engulfed in the expanding cloud of radioactive debris. This will cause more long term effects, including global cooling and an increase in background radiation levels.
"lethal radiation levels, total ozone layer loss, and chemical changes to the atmosphere" does sound like a fried planet for all practical purposes. So I was an order of magnitude off.
Here's a quotation with the effects of a supernova by distance [1]
[1] https://www.sffchronicles.com/threads/572882/