Skip to content

Commit

Permalink
fix: Fix bumping v1.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwalton committed Oct 13, 2022
1 parent ea5c215 commit 5cd7c58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/retagMajorVersion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

set -e

VERSION=$(node -e "console.log('v' + require('./package.json').version)")
MAJOR_VERSION=$(node -e "console.log('v' + require('./package.json').version.split('.')[0])")

echo "Retagging ${MAJOR_VERSION}"
echo "Retagging ${MAJOR_VERSION} to ${VERSION}"
git tag -d ${MAJOR_VERSION} && \
git push --delete origin ${MAJOR_VERSION} && \
git tag -a ${MAJOR_VERSION} -m ${NEXT_VERSION} && \
git tag -a ${MAJOR_VERSION} -m ${VERSION} && \
git push --follow-tags

0 comments on commit 5cd7c58

Please sign in to comment.