chore: move CHANGELOG.md
to docs/
This commit is contained in:
parent
475d181aac
commit
bbd92d11cc
3 changed files with 5 additions and 5 deletions
|
@ -180,7 +180,6 @@ exclude:
|
||||||
- docs
|
- docs
|
||||||
- tools
|
- tools
|
||||||
- README.md
|
- README.md
|
||||||
- CHANGELOG.md
|
|
||||||
- LICENSE
|
- LICENSE
|
||||||
- rollup.config.js
|
- rollup.config.js
|
||||||
- package*.json
|
- package*.json
|
||||||
|
|
|
@ -25,6 +25,7 @@ PROD_BRANCH="production"
|
||||||
|
|
||||||
GEM_SPEC="jekyll-theme-chirpy.gemspec"
|
GEM_SPEC="jekyll-theme-chirpy.gemspec"
|
||||||
NODE_CONFIG="package.json"
|
NODE_CONFIG="package.json"
|
||||||
|
CHANGE_LOG="docs/CHANGELOG.md"
|
||||||
|
|
||||||
JS_DIST="assets/js/dist"
|
JS_DIST="assets/js/dist"
|
||||||
BACKUP_PATH="$(mktemp -d)"
|
BACKUP_PATH="$(mktemp -d)"
|
||||||
|
@ -103,15 +104,15 @@ check() {
|
||||||
# auto-generate a new version number to the file 'package.json' and
|
# auto-generate a new version number to the file 'package.json' and
|
||||||
bump_node() {
|
bump_node() {
|
||||||
if $opt_pre; then
|
if $opt_pre; then
|
||||||
standard-version --prerelease rc
|
standard-version -i "$CHANGE_LOG" -p rc
|
||||||
else
|
else
|
||||||
standard-version
|
standard-version -i "$CHANGE_LOG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Change heading of Patch version to heading level 2 (a bug from `standard-version`)
|
# 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
|
# 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
|
## Bump new version to gem config file
|
||||||
|
|
Loading…
Reference in a new issue