Skip to content

Release on merge to main#5

Merged
YurMil merged 1 commit into
mainfrom
feat/release-on-merge
Jul 22, 2026
Merged

Release on merge to main#5
YurMil merged 1 commit into
mainfrom
feat/release-on-merge

Conversation

@YurMil

@YurMil YurMil commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Publishing required a version tag, so merging a pull request did nothing: #1#4 all landed and the Release workflow never ran once. That is why the site is still serving a build from before #4 — no large models, none of the transcript fixes.

Merging now publishes.

What triggers a release

A push to main that touches the application: src/, scripts/, index.html, package.json, pnpm-lock.yaml, vite.config.ts, tsconfig*.json.

Deliberately not everything. Without the path filter every README or workflow edit would run the full chain and raise another pull request on the site — the noise problem that made me argue for tags in the first place. This keeps the convenience and removes the noise.

How builds are versioned

Automatic builds are tagged v<version>-build.<run> and marked as prereleases, so hand-cut versions stay easy to spot among them. The run number supplies uniqueness rather than a version bump committed back to main — writing to main from the workflow would retrigger the workflow.

Explicit tags still work for named versions:

git tag v0.3.0 && git push origin v0.3.0

Releases are pinned with --target "$GITHUB_SHA" to the commit that was actually built, instead of wherever the default branch has moved by the time the job runs.

Companion change

YurMil/cadautoscript.com switches the sync to a rolling chore/whisper-transcriber-sync branch, so successive releases update one pull request instead of queueing up as separate ones. Merge that first, or the first few auto-releases will each open their own.

Housekeeping

Version bumped 0.1.0-prototype0.2.0. It had not moved across four merged pull requests, and the tag must mean something.

What happens when this merges

This pull request touches package.json, so merging it is itself the first release — v0.2.0-build.<n> — which carries the larger models and the transcript fixes from #4 to the site as a reviewable pull request.

pnpm test passes (12 tests); the workflow YAML parses.

🤖 Generated with Claude Code

Publishing needed a version tag, so merging a pull request did nothing: four
merges landed and the Release workflow never ran once. Merging now publishes.

- push to main triggers a release, filtered to paths that actually affect the
  bundle — src, scripts, entry document, manifest, lockfile, build config. A
  README fix must not raise a pull request on the site.
- the tag is v<version>-build.<run> and the release is marked prerelease, so
  hand-cut versions stay visible among the automatic ones. The run number
  supplies uniqueness because committing a version bump back to main would
  retrigger the workflow.
- releases are pinned to the commit that was built via --target, not to
  wherever the default branch has moved by the time the job runs.
- version bumped to 0.2.0; it had been left at 0.1.0-prototype across four
  merged pull requests.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

YurMil added a commit to YurMil/cadautoscript.com that referenced this pull request Jul 22, 2026
The source repository is switching to publishing on every merge to main
(YurMil/ws-speech-text#5). A branch per release would then leave a queue of
near-identical pull requests here, each superseded by the next before anyone
looked at it.

One branch, updated in place: it always carries the newest artifact that has
not been merged yet.

- push with --force rather than --force-with-lease. The branch is rebuilt from
  main on every run and owned by the workflow, and a freshly created local
  branch has no remote-tracking ref, so --force-with-lease would fail outright.
- the pull request title is updated as well as the body, since the open request
  now stands for whichever release is newest rather than the one that opened it.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@YurMil
YurMil merged commit 93bf828 into main Jul 22, 2026
1 check passed
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