diff --git a/scripts/deploy.sh b/scripts/deploy.sh index d9eea2d2..c9ebe901 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -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