A 2-1 final day defeat at Wrexham means Town will travel to Fylde in the National League Play-Offs on Wednesday 1st May.
Mark Beck had put Town ahead at The Racecourse Ground, though Jason Oswell's 42nd minute header and Christian Dibble's penalty save late in the first half ensured the sides were level at the break
The decisive moment came in the 80th minute when Nicky Deverdics put his side ahead, leaving Town sixth in their first season at National League level.
Simon Weaver made eight changes from Monday's win over Gateshead as Joe Cracknell and Toby Lees made their first starts of the season.
One player who kept his place in the line-up was Beck, who opened the scoring after just 11 minutes, creating a yard of space after a corner had dropped to his feet and firing into the roof of the net.
Wrexham, who had made seven changes for the tie, responded with a chance as Oswell headed goalwards, though Captain for the day Kelvin Langmead got his body in the way and cleared.
Jason Roberts nearly turned Aaron Williams cross into his own net in the next of the action, before Jack Muldoon tested Christian Dibble from long range.
Three minutes before the break Wrexham levelled when Paul Rutherford's left wing cross was headed into the top corner by Oswell.
Town almost restored their lead within a minute though as George Thomson's right wing cross was headed onto the bar with a Beck and Michael Woods both attacking the ball.
Weaver's side were awarded a penalty in the last action of the half when Muldoon was brought down in the area, but was denied by Dibble who guessed the right way and kept out the attempt.
Town started the second half well with Williams and Muldoon causing early problems, though a good block denied Town's top scorer's shot on the turn reaching Dibble.
The contest continued at a frantic pace with Thomson and Muldoon both getting shots in, before Cracknell was forced into a good save at the other end following substitute Deverdics' impressive delivery.
Joe Leesley was next to go close, curling just past the far post on his right foot after Beck had teed up the wide man, ten minutes before almost finding the top right with another well hit strike.
With ten minutes to go, Wrexham Captain Mark Carrington sent a ball in between the defence and goalkeeper that Deverdics was able to latch on to and dispatch past Cracknell.
Town went close to an equaliser two minutes from time when Muldoon headed Thomson's cross towards goal, but Dibble kept out the attempt, seconds before being awarded the Man of the Match by the home announcer, and ensured his side came out victorious.
Town: Cracknell, Thomson, Beck, Leesley, Agnew, Langmead, Williams, Muldoon, Lees, Kitching, Woods
Subs not used: Belshaw, Falkingham, Howe, Burrell, Thewlis
Goals: Beck 11
Wrexham: Dibble, Carrington, Roberts, Tharme, Jennings, Sargent, Agustien, Summerfield (Deverdics 45), Rutherford, Oswell (Stockton 78), Spyrou (Thorn 83)
Subs not used: Simpson, Wright
Goals: Oswell 42, Deverdics 80
Referee: J Hull
Attendance: 3,690 (99 away)