What is the key factor that fundamentally governs how long a star will shine?

Answer

Its initial mass

The lifespan of a star is primarily governed by its initial mass; larger stars burn fuel faster and have shorter lives, while smaller stars live much longer.

What is the key factor that fundamentally governs how long a star will shine?
astronomyLongevitystarlife