I am assuming when you say filed for permanent residency aka Green card, you have filed form I-485. If that is the case, did you also file EAD and advance parole? If you have advance parole, you can travel back using that and dont need H1B visa. However if you do that, you will be admitted on AP status and lose your H1B status. In such situation you can use EAD to continue your employment and can choose to switch back to H1B status by having your employer file H1B extension of status.
Otherwise yes you will beed H1B visa to enter back to the US.