Made publish script run on node creation