add publish script for component and bower

This reverts commit 5543a1637b42423f97a01e2dd29acd7c302cc73e.
Merge pull request #2561 from calvinmetcalf/build-step

add publish script for component and bower