Renée Kooi 6 年之前
父節點
當前提交
3dd7e8cbe5
共有 2 個文件被更改,包括 3 次插入9 次删除
  1. 2 8
      bin/release
  2. 1 1
      bin/sync-version-numbers

+ 2 - 8
bin/release

@@ -17,7 +17,7 @@ if [[ ! "$@" =~ -y ]]; then
   read
 fi
 
-if [[ ! "$(npm get registry)" =~ https://registry\.npmjs\.(com|org)/? ]]; then
+if [[ ! "$(npm get registry)" =~ https://registry\.npmjs\.(com|org)/? ]] && false; then
   echo "Found unexpected npm registry: $(npm get registry)"
   echo "Run this to fix:"
   echo ""
@@ -58,13 +58,7 @@ npm run build
 git commit -m "Release"
 lerna version --amend --no-push --exact
 
-# Replace version numbers in URLs
-version_files="./examples/ README.md bin/upload-to-cdn.sh website/src/examples/ website/src/docs/ website/themes/uppy/layout/"
-main_package_version=$(node -p "require('./packages/uppy/package.json').version")
-replace-x -r 'uppy/v\d+\.\d+\.\d+/dist' "uppy/v$main_package_version/dist" $version_files --exclude=node_modules
-git commit --amend --no-edit $version_files # add changes to the Release commit
-
-lerna publish from-git
+# lerna publish from-git
 
 # git push
 # git push --tags

+ 1 - 1
bin/sync-version-numbers

@@ -27,4 +27,4 @@ fi
 version_files="./examples/ README.md bin/upload-to-cdn.sh website/src/examples/ website/src/docs/ website/themes/uppy/layout/"
 main_package_version=$(node -p "require('./packages/uppy/package.json').version")
 replace-x -r 'uppy/v\d+\.\d+\.\d+/dist' "uppy/v$main_package_version/dist" $version_files --exclude=node_modules
-git commit --amend --no-edit $version_files # add changes to the Release commit
+git add $version_files # add changes to the Release commit