Explorar o código

Fix release.sh for npm 7

Francisco Giordano %!s(int64=4) %!d(string=hai) anos
pai
achega
64f20ec624
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      scripts/release/release.sh

+ 3 - 1
scripts/release/release.sh

@@ -42,8 +42,10 @@ publish() {
   npm publish --tag "$dist_tag" --otp "$(prompt_otp)"
 
   log "Publishing @openzeppelin/contracts on npm"
+  cd contracts
   env ALREADY_COMPILED= \
-      npm publish contracts --tag "$dist_tag" --otp "$(prompt_otp)"
+      npm publish --tag "$dist_tag" --otp "$(prompt_otp)"
+  cd ..
 
   if [[ "$dist_tag" == "latest" ]]; then
     otp="$(prompt_otp)"