فهرست منبع

allow release script to specify publish tag

Evan You 9 سال پیش
والد
کامیت
2055b0dcdf
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      build/release.sh

+ 5 - 1
build/release.sh

@@ -45,5 +45,9 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
   # publish
   # publish
   git push origin refs/tags/v$VERSION
   git push origin refs/tags/v$VERSION
   git push
   git push
-  npm publish
+  if [[ -z $RELEASE_TAG ]]; then
+    npm publish --tag $RELEASE_TAG
+  else
+    npm publish
+  fi
 fi
 fi