Refact publish package