chore: move CHANGELOG.md to docs/

This commit is contained in:
Cotes Chung 2023-10-01 01:49:20 +08:00
parent 475d181aac
commit bbd92d11cc
No known key found for this signature in database
GPG key ID: 0D9E54843167A808
3 changed files with 5 additions and 5 deletions

View file

@ -180,7 +180,6 @@ exclude:
- docs
- tools
- README.md
- CHANGELOG.md
- LICENSE
- rollup.config.js
- package*.json

View file

@ -25,6 +25,7 @@ PROD_BRANCH="production"
GEM_SPEC="jekyll-theme-chirpy.gemspec"
NODE_CONFIG="package.json"
CHANGE_LOG="docs/CHANGELOG.md"
JS_DIST="assets/js/dist"
BACKUP_PATH="$(mktemp -d)"
@ -103,15 +104,15 @@ check() {
# auto-generate a new version number to the file 'package.json' and
bump_node() {
if $opt_pre; then
standard-version --prerelease rc
standard-version -i "$CHANGE_LOG" -p rc
else
standard-version
standard-version -i "$CHANGE_LOG"
fi
# Change heading of Patch version to heading level 2 (a bug from `standard-version`)
sed -i "s/^### \[/## \[/g" CHANGELOG.md
sed -i "s/^### \[/## \[/g" "$CHANGE_LOG"
# Replace multiple empty lines with a single empty line
sed -i "/^$/N;/^\n$/D" CHANGELOG.md
sed -i "/^$/N;/^\n$/D" "$CHANGE_LOG"
}
## Bump new version to gem config file