prepublish script