Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
Fix the tag pushing problems for apache release script. (#2481)
Browse files Browse the repository at this point in the history
The release script of weex relies on release-it (https://github.com/release-it/release-it), which will push all local tag to remote. I am fixing it by disable the ability of pushing tag in release-it.
  • Loading branch information
YorkShen authored and lucky-chen committed May 27, 2019
1 parent 340ec4a commit c3a5b00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/publish_release_official.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

# This scirpt is used to publish release officially in Apache, Github Tag, Github Release, Android JCenter.
# One may invoke this script by
# scripts/publish_release_official.sh 0.24.0 RC3 0.19.0 github-Apache token1 token2
# scripts/publish_release_official.sh $RELEASE_CANDIDATE_PREFIX $RELEASE_CANDIDATE_SUFFIX $TAG_OF_LATEST_RELEASE $GIT_REMOTE $GITHUB_PERSONAL_TOKEN $JCENTER_TOKEN

# Explanation for variable:
Expand Down Expand Up @@ -52,9 +51,11 @@ svn add "$1"
svn commit -m "Release ${1}"

# Publish to Github Release
git tag "$1"
git push "$4" "$1"
npm install -g release-it
export GITHUB_TOKEN="$5"
release-it --no-npm --no-git.commit --no-git.requireCleanWorkingDir --git.tagName="$1" --git.tagAnnotation='"$(cat RELEASE_NOTE.md)"' --git.tagArgs="--cleanup=verbatim" --git.pushRepo="$4" --github.release --github.releaseName="$1" --github.releaseNotes="cat RELEASE_NOTE.md"
release-it --ci --no-npm --no-git.commit --no-git.requireCleanWorkingDir --no-git.tag --no-git.push --git.pushRepo="$4" --github.release --github.releaseName="$1" --github.releaseNotes="cat RELEASE_NOTE.md" $1

# Publish Android to JCenter
cd android
Expand Down

0 comments on commit c3a5b00

Please sign in to comment.