Deploy to npm and export copy function for publish assets

this is required due to a bug in travis on tag deployment