Parcourir la source

Fix release.sh for npm 7

Francisco Giordano il y a 4 ans
Parent
commit
64f20ec624
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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)"