The light shone like a star.

Literal

Light [topic-は] star [like-のように] shone.

のように marks a simile — 'like X.' 輝く ('to shine, glow') is a written/literary verb, more poetic than 光る. The whole sentence has a literary flavor.