diff --git a/scripts/release/release.sh b/scripts/release/release.sh index c8ace0d2..ce5a28be 100755 --- a/scripts/release/release.sh +++ b/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)"