message: Detect if the release is a prelease and publish it properly
diff: @@ -13,7 +13,12 @@ env PACKAGE_OUTPUT_PATH="$PACKAGE_PATH" ./scripts/build/package.sh
  echo "//registry.npmjs.org/:_authToken=$NPM_KEY" > ~/.npmrc
  cd "$PACKAGE_PATH" || exit 1
  +if [[ "$TRAVIS_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+-.+$ ]]
  +then
  + npm publish --tag next
  +else
  npm publish
  +fi
  cd - || exit
  ./scripts/release/updateFirebase.js
  