ACTIVATE the building alarm system or notify the fire department by calling 911. Or, have someone else do this for you.
ASSIST any persons in immediate danger, or those incapable on their own, to exit the building, without risk to yourself.
Only after these two are completed, should you
ATTEMPT to extinguish the fire.