Skip to content

Commit 2bd75a4

Browse files
committed
Fix release script to only release @openzeppelin/contracts
1 parent 2a4ca65 commit 2bd75a4

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

scripts/release/release.sh

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,13 @@ push_release_branch_and_tag() {
3838
publish() {
3939
dist_tag="$1"
4040

41-
log "Publishing @openzeppelin/contracts on npm"
42-
npm publish --tag "$dist_tag" --otp "$(prompt_otp)"
43-
4441
log "Publishing @openzeppelin/contracts on npm"
4542
cd contracts
46-
env ALREADY_COMPILED= \
47-
npm publish --tag "$dist_tag" --otp "$(prompt_otp)"
43+
npm publish --tag "$dist_tag" --otp "$(prompt_otp)"
4844
cd ..
4945

5046
if [[ "$dist_tag" == "latest" ]]; then
51-
otp="$(prompt_otp)"
52-
npm dist-tag rm --otp "$otp" @openzeppelin/contracts next
53-
54-
# No longer updated!
55-
# npm dist-tag rm --otp "$otp" openzeppelin-solidity next
47+
npm dist-tag rm --otp "$(prompt_otp)" @openzeppelin/contracts next
5648
fi
5749
}
5850

@@ -145,8 +137,6 @@ elif [[ "$*" == "final" ]]; then
145137

146138
push_and_publish latest
147139

148-
# npm deprecate 'openzeppelin-solidity@>=4.0.0' "This package is now published as @openzeppelin/contracts. Please change your dependency."
149-
150140
log "Remember to merge the release branch into master and push upstream"
151141

152142
else

0 commit comments

Comments
 (0)