add publish script for component and bower

This reverts commit 5543a1637b42423f97a01e2dd29acd7c302cc73e.