|
6 | 6 | # |
7 | 7 | # End to end this: |
8 | 8 | # 1. bumps "version" in package.json, |
9 | | -# 2. commits "Release corbits X.Y.Z" locally (no tag yet -- see step 5), |
| 9 | +# 2. commits "chore(release): corbits X.Y.Z" locally (no tag yet -- see step 5), |
10 | 10 | # 3. cross-compiles standalone binaries (no runtime required) for |
11 | 11 | # macOS arm64/x64 and Linux x64/arm64 with `bun build --compile`, |
12 | 12 | # 4. smoke-tests the host-native binary, then packages each target as a |
@@ -334,7 +334,7 @@ write_changelog_section() { |
334 | 334 | # to its header and `/changelog` renders an empty release. |
335 | 335 | body=$(printf '%s\n' "$body" | sed 's/^## /### /') |
336 | 336 | tmp=$(mktemp) |
337 | | - first=$(grep -n '^## \[[0-9]' CHANGELOG.md | head -1 | cut -d: -f1) |
| 337 | + first=$(grep -n '^## \[[0-9]' CHANGELOG.md | head -1 | cut -d: -f1 || true) |
338 | 338 | if [ -z "$first" ]; then |
339 | 339 | cp CHANGELOG.md "$tmp" |
340 | 340 | printf '\n## [%s] - %s\n\n%s\n' "$VERSION" "$(date -u +%Y-%m-%d)" "$body" >> "$tmp" |
|
432 | 432 | git add CHANGELOG.md |
433 | 433 | info "wrote generated ## [$VERSION] section into CHANGELOG.md" |
434 | 434 | fi |
435 | | - git commit -q -m "Release $FORMULA $VERSION" |
| 435 | + git commit -q -m "chore(release): $FORMULA $VERSION" |
436 | 436 | info "committed release $VERSION (PR and tag deferred until after build)" |
437 | 437 | fi |
438 | 438 |
|
|
505 | 505 | --json number --jq '.[0].number // empty') |
506 | 506 | if [ -z "$PR_NUM" ]; then |
507 | 507 | gh pr create --repo "$MAIN_REPO" --head "$RELEASE_BRANCH" --base main \ |
508 | | - --title "Release $FORMULA $VERSION" \ |
| 508 | + --title "chore(release): $FORMULA $VERSION" \ |
509 | 509 | --body "Version bump to $VERSION. Release notes are generated from the pull requests merged since the previous release." >/dev/null |
510 | 510 | PR_NUM=$(gh pr list --repo "$MAIN_REPO" --head "$RELEASE_BRANCH" --state open \ |
511 | 511 | --json number --jq '.[0].number // empty') |
|
0 commit comments