message: Use 'tag' parameter for NPM publishing pipeline
diff: # publishes a package to NPM (passed in as $(pkg) variable)
  +# you can also customize the tag used for NPM with the $(tag) variable (defaults to 'latest')
  trigger:
  - master
  @@ -21,10 +22,16 @@ steps:
  wget $(pkg)
  rc=$?; if [ $rc -ne 0 ]; then exit $rc ; fi
  + # determine the tag
  + npmTag = "latest"
  + if [ -n "$(tag)" ]; then
  + npmTag = $(tag)
  + fi
  +
  # publish it to npm
  for file in *.tgz
  do
  - npm publish $file --tag latest --access public
  + npm publish $file --tag $npmTag --access public
  rc=$?; if [ $rc -ne 0 ]; then exit $rc ; fi
  done
  