Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,13 @@ jobs:
run: bun install --frozen-lockfile

- name: Test release tooling
run: bun test scripts/release-please-ai scripts/release-please-runner.test.ts
run: bun test scripts/release-please-runner.test.ts

- name: Run Release Please
id: release-please
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_REPOSITORY: ${{ github.repository }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
RELEASE_NOTES_MODEL: ${{ vars.RELEASE_NOTES_MODEL || secrets.RELEASE_NOTES_MODEL }}
run: bun run release-please

- name: Dispatch publish workflow for stable release
Expand Down
26 changes: 1 addition & 25 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions docs/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@
5. The Release Please workflow explicitly dispatches `.github/workflows/publish.yml` for the tag because workflows created with `GITHUB_TOKEN` do not reliably trigger follow-up workflows automatically.
6. `publish.yml` validates the tag and source versions, runs the release quality gates, publishes `ghostty-web`, then publishes `@ghostty-web/demo` with its `ghostty-web` dependency pinned to the exact release version.

## AI release notes

Release Please owns the canonical changelog structure, commit sections, headings, and links. The custom `changelog-type: "ai"` generator only inserts a concise editorial summary and optional highlights below the version heading.

The AI path uses an AI SDK `ToolLoopAgent` with scoped tools. It can list the release commits and inspect GitHub commit diffs for those SHAs before producing the structured editorial summary. The tools reject SHAs outside the current release scope.

- Configure `ANTHROPIC_API_KEY` as a repository secret to enable AI editorial notes.
- Configure `RELEASE_NOTES_MODEL` as a repository variable or secret to choose the model. The workflow reads the variable first and falls back to the secret for compatibility with secret-only setups.
- If either setting is missing or model generation fails, the runner logs the reason and falls back to default Release Please notes.

## Next publishes

`.github/workflows/publish.yml` also publishes `ghostty-web@next` and `@ghostty-web/demo@next` after successful CI on `main`. Release-only squash commits whose subject matches `chore(release): ...` are skipped so version/changelog-only release PR merges do not create noisy prereleases.
Expand Down Expand Up @@ -46,7 +36,5 @@ When the pipeline has been test-driven successfully and maintainers are ready fo
Before the first automated stable release:

- Configure npm trusted publishers for both `ghostty-web` and `@ghostty-web/demo` for `.github/workflows/publish.yml`.
- Add the `ANTHROPIC_API_KEY` repository secret if AI editorial notes should be enabled.
- Add the `RELEASE_NOTES_MODEL` repository variable when using AI notes.
- Enable squash merging, disable merge commits and rebase merging, and set squash commit titles to use the pull request title.
- Require the `pr-title`, `fmt`, `lint`, `type check`, `test`, and `build` checks before merge; require merge-group variants too if merge queue is enabled.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,17 @@
"release-please": "tsx scripts/release-please-runner.ts"
},
"devDependencies": {
"@ai-sdk/anthropic": "^4.0.0",
"@biomejs/biome": "^1.9.4",
"@happy-dom/global-registrator": "^15.11.0",
"@types/bun": "^1.3.2",
"@xterm/headless": "^5.5.0",
"@xterm/xterm": "^5.5.0",
"ai": "^7.0.2",
"mitata": "^1.0.34",
"prettier": "^3.6.2",
"release-please": "17.9.0",
"tsx": "^4.22.4",
"typescript": "^5.9.3",
"vite": "^4.5.0",
"vite-plugin-dts": "^4.5.4",
"zod": "^4.4.3"
"vite-plugin-dts": "^4.5.4"
}
}
1 change: 0 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "node",
"changelog-type": "ai",
"include-component-in-tag": false,
"include-v-in-tag": true,
"bump-minor-pre-major": true,
Expand Down
83 changes: 0 additions & 83 deletions scripts/release-please-ai/changelog-notes.test.ts

This file was deleted.

91 changes: 0 additions & 91 deletions scripts/release-please-ai/changelog-notes.ts

This file was deleted.

37 changes: 0 additions & 37 deletions scripts/release-please-ai/generate.ts

This file was deleted.

Loading
Loading