Action height is largely preference, although having action too high can screw up intonation while action too low will make fret buzz and dead notes. To put it simply, you will adjust the truss rod for the action near the head and the bridge for the action past the 12th fret. You want to make sure they’re balanced, and this video does a good job explaining the whole process of setting up a guitar, including action.