Add prepublish and postpublish scripts