I'm assuming OP's problem is not how to make stairs, but how to get town NPCs be able to move up and down on them?
My obsevation is, that town NPCs try to walk up stairs, but they will fall off from them if it's a 5-6 or more blocks high, and has no blocks under the platform. So, with a standard 6 blocks tall room, and a stair with no blocks under it, the NPC will never go up the 2nd floor.
View attachment 277071
For instence, the tavernkeep and the demolitionist will never go up the 2nd floor here.
NPCs also never go down stairs like this for some reason, so, the musician and the picklock will never end up in the floor below. That's just how their AI is, I guess.
However, in case there are solid blocks under the stairs...
View attachment 277072
I built this as part of a large test town, and I tried to implement something here that NPCs seem to do, regarding stairs and their AI.
the people on the ground floor (blacksmith & grome swordsmith) aren't able to get to the floor above. however the young brewer will go upstairs. the stairs on the 2nd floor have solid blocks under, which prevents the town NPC to jump off the stairs, and they will continue to go up, ending up on the next floor. Because they can't go down the stairs normally, this means they will spend the rest of the day there (which was my intentions here with this test, so the young brewer would be with his parents.)
At 7:30 PM, every NPCs try to return to their assigned house, and when they're returning home, they can fall though/jump off platforms, so he'll return there for the night.
(I don't remember but maybe the demolitionist can go up the stairs to the building too. I don't remember if it's low enough for that, or not.)
(So, while NPCs don't normally come down stairs, they actually do that when reassigned to a new place too. they will try to pathfind the shortest way to their new home and will jump off the closest platform, if their house is below. unfortunatelly... they don't seems to mind whether that actually will allow them to reach their new home... they will just jump off the closes platform regardless there that leads, so they will often end up stuck, or even worse, mindlessly jump into a lava trap because they thought that is the shortest way to their new home... well... I dunno...)
This is what I figured out. But I don't know how to make them walk down stairs when there are platforms as floor which they normally don't fall though. It could be interesting if they could do that to move around and be able to socialise more with their neighbors downstairs, or that NPCs who live upstairs could leave the house too to go around for a walk, much like how their downstairs neighbor does. (but, to do this, they probably would need a smarter AI, to not get lost, or end up jumping into lava traps and lakes...