Added publish task for publishing to npm and nuget (fixes #11).