They won their Promotional Finals as they held their nerve on a tense afternoon.
The Minstermen are back after defeating Boston United 2-0.
Man of the moment Lenell John-Lewis put them ahead against the Pilgrims before the game was made safe.
A second goal from Max Kouhyar four minutes time sealed the deal - and York end their National League North stay.
Dorking join them after securing yet another promotion.
The club formed in 1999 rise again - manager Marc White proud as punch to see his team defeat Ebbsfleet United 3-2 after extra time.
In a thriller it needed extra time - and Alfie Rutherford was on hand to supply.
His extra time winner proved to be the difference as another promotion was secured.
Wanderers have gained 12 promotions since they were formed 23 years ago and boss White beamed: “I couldn’t be prouder.”