From bbd92d11cc448459af70ad2081d1422f30059526 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun, 1 Oct 2023 01:49:20 +0800 Subject: [PATCH] chore: move `CHANGELOG.md` to `docs/` --- _config.yml | 1 - CHANGELOG.md => docs/CHANGELOG.md | 0 tools/release | 9 +++++---- 3 files changed, 5 insertions(+), 5 deletions(-) rename CHANGELOG.md => docs/CHANGELOG.md (100%) diff --git a/_config.yml b/_config.yml index f7245f8..93d768d 100644 --- a/_config.yml +++ b/_config.yml @@ -180,7 +180,6 @@ exclude: - docs - tools - README.md - - CHANGELOG.md - LICENSE - rollup.config.js - package*.json diff --git a/CHANGELOG.md b/docs/CHANGELOG.md similarity index 100% rename from CHANGELOG.md rename to docs/CHANGELOG.md diff --git a/tools/release b/tools/release index 69bfa26..59bc917 100755 --- a/tools/release +++ b/tools/release @@ -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