Skip to content

Commit 5cd7c58

Browse files
committed
fix: Fix bumping v1.
1 parent ea5c215 commit 5cd7c58

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/retagMajorVersion.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
set -e
44

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

7-
echo "Retagging ${MAJOR_VERSION}"
8+
echo "Retagging ${MAJOR_VERSION} to ${VERSION}"
89
git tag -d ${MAJOR_VERSION} && \
910
git push --delete origin ${MAJOR_VERSION} && \
10-
git tag -a ${MAJOR_VERSION} -m ${NEXT_VERSION} && \
11+
git tag -a ${MAJOR_VERSION} -m ${VERSION} && \
1112
git push --follow-tags

0 commit comments

Comments
 (0)