Skip to content

Commit d6ba930

Browse files
committed
build: run changelog before pushing
1 parent 674c6d6 commit d6ba930

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Diff for: scripts/release.sh

+5-7
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,17 @@ then
1515
git commit -m "build: bundle $VERSION"
1616
npm version $VERSION --message "chore(release): %s"
1717

18-
echo "Please check the git history and press enter"
18+
# changelog
19+
npm run changelog
20+
echo "Please check the git history and the changelog and press enter"
1921
read OKAY
22+
git add CHANGELOG.md
23+
git commit -m "chore(changelog): $VERSION"
2024

2125
# publish
2226
git push origin refs/tags/v$VERSION
2327
git push
2428
npm publish
2529

26-
# changelog
27-
npm run changelog
28-
echo "Please check the changelog and press enter"
29-
read OKAY
30-
git add CHANGELOG.md
31-
git commit -m "chore(changelog): $VERSION"
3230
git push
3331
fi

0 commit comments

Comments
 (0)