The New South Wales Deputy Premier John Barilaro has announced he will resign. It comes as Treasurer Dominic Perrottet is set to become the state's next premier, with a partyroom meeting planned for tomorrow.