Skip to content

Commit 63d8548

Browse files
committed
build(release): add changelog with checks
1 parent 228d1a2 commit 63d8548

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: scripts/release.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,19 @@ then
1111
VERSION=$VERSION npm run build
1212

1313
# commit
14-
git add -A
14+
git add dist
1515
git commit -m "[build] $VERSION"
1616
npm version $VERSION --message "[release] $VERSION"
1717

1818
# publish
1919
git push origin refs/tags/v$VERSION
2020
git push
2121
npm publish
22+
23+
# changelog
24+
npm run changelog
25+
read OKAY
26+
git add CHANGELOG.md
27+
git commit -m "[changelog] $VERSION"
28+
git push
2229
fi

0 commit comments

Comments
 (0)