Update docs
This commit is contained in:
@ -38,19 +38,13 @@ push_release_branch_and_tag() {
|
||||
publish() {
|
||||
dist_tag="$1"
|
||||
|
||||
log "Publishing openzeppelin-solidity 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-solidity next
|
||||
npm dist-tag rm --otp "$otp" @openzeppelin/contracts next
|
||||
npm dist-tag rm --otp "$(prompt_otp)" @openzeppelin/contracts next
|
||||
fi
|
||||
}
|
||||
|
||||
@ -143,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
|
||||
|
||||
@ -15,6 +15,7 @@ const { version } = require('../../package.json');
|
||||
// Get latest tag according to semver.
|
||||
const [ tag ] = run('git', 'tag')
|
||||
.split(/\r?\n/)
|
||||
.filter(semver.coerce) // check version can be processed
|
||||
.filter(v => semver.lt(semver.coerce(v), version)) // only consider older tags, ignore current prereleases
|
||||
.sort(semver.rcompare);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user