浏览代码

Fix release script to only release @openzeppelin/contracts

(cherry picked from commit 2bd75a44bb5f419d132bdca6f1bf483d1479f550)
Francisco Giordano 3 年之前
父节点
当前提交
050180ec88
共有 1 个文件被更改,包括 2 次插入12 次删除
  1. 2 12
      scripts/release/release.sh

+ 2 - 12
scripts/release/release.sh

@@ -38,21 +38,13 @@ push_release_branch_and_tag() {
 publish() {
   dist_tag="$1"
 
-  log "Publishing @openzeppelin/contracts on npm"
-  npm publish --tag "$dist_tag" --otp "$(prompt_otp)"
-
   log "Publishing @openzeppelin/contracts on npm"
   cd contracts
-  env ALREADY_COMPILED= \
-      npm publish --tag "$dist_tag" --otp "$(prompt_otp)"
+  npm publish --tag "$dist_tag" --otp "$(prompt_otp)"
   cd ..
 
   if [[ "$dist_tag" == "latest" ]]; then
-    otp="$(prompt_otp)"
-    npm dist-tag rm --otp "$otp" @openzeppelin/contracts next
-
-    # No longer updated!
-    # npm dist-tag rm --otp "$otp" openzeppelin-solidity next
+    npm dist-tag rm --otp "$(prompt_otp)" @openzeppelin/contracts next
   fi
 }
 
@@ -145,8 +137,6 @@ elif [[ "$*" == "final" ]]; then
 
   push_and_publish latest
 
-  # npm deprecate 'openzeppelin-solidity@>=4.0.0' "This package is now published as @openzeppelin/contracts. Please change your dependency."
-
   log "Remember to merge the release branch into master and push upstream"
 
 else