Skip to content

fix(release): repair package.json scripts orphaned by PR #746 - #747

Merged
michaelpporter merged 1 commit into
mainfrom
phase3-redo
Jul 26, 2026
Merged

fix(release): repair package.json scripts orphaned by PR #746#747
michaelpporter merged 1 commit into
mainfrom
phase3-redo

Conversation

@michaelpporter

Copy link
Copy Markdown
Owner

main is currently brokenbun run version:beta invokes version-bump-beta.mjs, which PR #746 deleted. This restores the half of that change which never made it into the commit, and adds the 1.12-compat CI trigger.

What went wrong

PR #746 was supposed to contain two deletions plus five file edits. It merged with only the deletions:

 manifest-beta.json    | 15 ---------------
 version-bump-beta.mjs | 46 ----------------------------------------------
 2 files changed, 61 deletions(-)

The staging command listed already-git rm'd paths alongside modified ones, so git aborted the entire add:

fatal: pathspec 'manifest-beta.json' did not match any files

Only the two pre-staged deletions were committed. git status wasn't re-checked afterwards, so it went out as-is. (The identical mistake happened on 1.12-compat and was caught there, fixed by 5ada704.)

Restored

  • package.jsonversion:beta bumps manifest.json like version:prod; release:beta pushes the current branch instead of hardcoded main:main
  • .github/workflows/release.yml — comment explaining there's no beta manifest to publish (BRAT v1.1.0+ ignores manifest-beta.json)
  • AGENTS.md — documents the unified bump mechanics
  • CHANGELOG.md — Build entries

Plus: CI on 1.12-compat

For push events GitHub uses the workflow file from the branch being pushed, so 1.12-compat needs its own copy listing itself — listing it only in main's file would do nothing. Both files now list both branches, so they stay byte-identical and future ports are mechanical.

bun run build && bun run test pass (382 tests, 0 type errors, svelte-check 0/0), and version:beta now resolves to a script that exists.

2b512b6 (PR #746) deleted manifest-beta.json and version-bump-beta.mjs
but did NOT include the package.json change that stops referencing
them, so `bun run version:beta` on main has been broken since that
merge — it invokes a script that no longer exists.

Cause: the staging command listed already-`git rm`'d paths alongside
modified ones. git aborted the whole `add` with "fatal: pathspec
'manifest-beta.json' did not match any files", so only the two
pre-staged deletions made it into the commit. The accompanying edits
were written to disk but never staged, and went unnoticed because
`git status` wasn't re-checked after committing.

Restores the intended changes:
- package.json: version:beta bumps manifest.json like version:prod;
  release:beta pushes the current branch instead of hardcoded main:main
- .github/workflows/release.yml: comment explains why there's no beta
  manifest to publish (BRAT v1.1.0+ ignores manifest-beta.json)
- AGENTS.md: documents the unified bump mechanics
- CHANGELOG.md: Build entries for all of the above

Also extends CI to 1.12-compat. For push events GitHub uses the
workflow file from the branch being pushed, so 1.12-compat needs its
own copy listing itself; both files now list both branches so they stay
identical and future ports are mechanical.
@michaelpporter
michaelpporter merged commit d815f11 into main Jul 26, 2026
1 check passed
@michaelpporter
michaelpporter deleted the phase3-redo branch July 26, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant