Skip to content

Commit 4d5520c

Browse files
committed
chore(build): unify build and release commits
1 parent a775fb1 commit 4d5520c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: scripts/release.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ if [[ $REPLY =~ ^[Yy]$ ]]
88
then
99
echo "Releasing $VERSION ..."
1010
npm test
11-
VERSION=$VERSION npm run build
1211

1312
# commit
13+
npm version $VERSION --message "chore(release): %s"
14+
VERSION=$VERSION npm run build
1415
git add dist
15-
git commit -m "chore(build): $VERSION"
16-
npm version $VERSION --message "chore(release): $VERSION"
16+
git commit --amend --no-edit # merge with previous commit
17+
18+
read OKAY
1719

1820
# publish
1921
git push origin refs/tags/v$VERSION

0 commit comments

Comments
 (0)