Skip to content

Commit

Permalink
Fix deploy script to push converted tag back
Browse files Browse the repository at this point in the history
  • Loading branch information
zhusee2 committed Mar 4, 2020
1 parent b379252 commit 6dff482
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ echo "Publishing ${TRAVIS_TAG}"

# convert lightweight tag to annotated tag so Lerna can use it
git tag -a -f -m "${TRAVIS_TAG}" "${TRAVIS_TAG}" "${TRAVIS_TAG}"
git push --force origin "${TRAVIS_TAG}"

# push back tags
git remote add tags-origin "https://ichefbot:${GH_TOKEN}@${GH_REPO}"
git push --force tags-origin "${TRAVIS_TAG}"
git remote remove tags-origin

# publish to npm
yarn release --yes --ignore-prepublish

0 comments on commit 6dff482

Please sign in to comment.