As others have said, consider your return flight. IMHO, I would fly to Madrid, then bus or train Pamplona and bus to St Jean. When your Camino is finished, it is easy to get from Santiago to Madrid by train or bus. To get the cheapest flights, use Skyscanner which will show the cheapest flights...