diff --git a/README.md b/README.md index 8908fb25..4ca46ed8 100644 --- a/README.md +++ b/README.md @@ -97,10 +97,9 @@ bunx @stellarwp/changelogger write --overwrite-version ## Releasing -1. Update the `VERSION` constant in `src/Harbor/Harbor.php` to the new version. -2. Compile changelog entries: `bunx @stellarwp/changelogger write --overwrite-version ` -3. Open a PR and merge. -4. Create a GitHub Release with a new tag in the format `vX.X.X` targeting the merge commit. +1. Run the **Release Prep** workflow (`Actions → Release Prep → Run workflow`). Supply the target branch, version (e.g. `1.2.0`), and the release date (e.g. `2026-04-29`). The workflow bumps the `VERSION` constant, compiles the changelog, and opens a PR automatically. +2. Review and merge the PR. +3. Create a GitHub Release with a new tag in the format `vX.X.X` targeting the merge commit. ## Documentation diff --git a/dev_scripts/set-numeric-version.sh b/dev_scripts/set-numeric-version.sh index 295a985a..38e38d88 100755 --- a/dev_scripts/set-numeric-version.sh +++ b/dev_scripts/set-numeric-version.sh @@ -50,7 +50,7 @@ function validate() { function replace_tbd_in_files() { # Find all files with "TBD" in them # shellcheck disable=SC2062,SC2035 - files_with_tbd=$(grep --exclude-dir={vendor,node_modules,vendor-prefixed,dev_scripts,.git,build,build-dev} --exclude='*.md' --exclude='*.yml' --exclude='*diff*' --exclude='composer.json' -Irnw "$project_root/" -e "$tbd_regex" | cut -d':' -f1 | sed "s|$project_root/||g") + files_with_tbd=$(grep --exclude-dir={vendor,node_modules,vendor-prefixed,dev_scripts,.git,build,build-dev} --exclude='*.md' --exclude='*.yml' --exclude='*diff*' --exclude='composer.json' --exclude='set-numeric-version.bats' -Irnw "$project_root/" -e "$tbd_regex" | cut -d':' -f1 | sed "s|$project_root/||g") if [ "$dry_run" = true ]; then if [ -n "$files_with_tbd" ]; then