If your ship arrives at the Royal Naval Dockyard you can take a ferry straight to St. George's. It does only run on the weekdays. If your ship arrives into Hamilton, there are several buses that go to St. Georges.
You can take a bus into downtown and transfer out there. $4 round trip but it will be time consuming.
Get quick answers from World Heritage Centre - St. George staff and past visitors.