The party has been accused of putting jobs at risk by vowing not to issue any new oil and gas licences if it wins power.