How did New York become a state?

The colony signed the declaration of Independence and made it a free state from the British. When the united States won the war all of the colonies decided to become one nation and make the thirteen colonies into states.