Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

feat: unify release tags and changelog (#212)

Gener8183e041b6e9
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6d1993234..042f66d28 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -143,3 +143,18 @@ jobs:
- name: Lighthouse CI
working-directory: src/web
run: npx @lhci/cli autorun --config=lighthouserc.json && node scripts/print-lighthouse-scores.mjs
+
+ release:
+ name: GitHub Release
+ if: startsWith(github.ref, 'refs/tags/v')
+ needs: [quality, test, build, coverage]
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+ permissions:
+ contents: write
+ steps:
+ - uses: actions/checkout@v6
+ - name: Create GitHub Release
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: gh release create "${{ github.ref_name }}" --generate-notes --title "${{ github.ref_name }}"
diff --git a/.github/workflows/publish-app.yml b/.github/workflows/publish-app.yml
index 629b9af5c..df68e1a4e 100644
--- a/.github/workflows/publish-app.yml
+++ b/.github/workflows/publish-app.yml
@@ -16,7 +16,6 @@ jobs:
timeout-minutes: 30
permissions:
id-token: write
- contents: write
steps:
- uses: actions/checkout@v6
@@ -25,7 +24,6 @@ jobs:
run: |
VERSION=$(node -p "require('./src/app/package.json').version")
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- echo "tag=app/v$VERSION" >> "$GITHUB_OUTPUT"
- name: Check if version already published
id: check
@@ -76,12 +74,6 @@ jobs:
working-directory: src/app
run: npm publish --access public
- - name: Create GitHub release
- if: steps.check.outputs.skip == 'false'
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: gh release create "${{ steps.version.outputs.tag }}" --generate-notes --title "App v${{ steps.version.outputs.version }}"
-
- name: Notify Discord
if: steps.check.outputs.skip == 'false'
env:
diff --git a/.github/workflows/publish-cli.yml b/.github/workflows/publish-cli.yml
index a0c9bd0ac..51e1adbb2 100644
--- a/.github/workflows/publish-cli.yml
+++ b/.github/workflows/publish-cli.yml
@@ -16,7 +16,6 @@ jobs:
timeout-minutes: 10
permissions:
id-token: write
- contents: write
steps:
- uses: actions/checkout@v6
@@ -25,7 +24,6 @@ jobs:
run: |
VERSION=$(node -p "require('./src/cli/package.json').version")
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- echo "tag=cli/v$VERSION" >> "$GITHUB_OUTPUT"
- name: Check if version already published
id: check
@@ -68,12 +66,6 @@ jobs:
working-directory: src/cli
run: npm publish --access public
- - name: Create GitHub release
- if: steps.check.outputs.skip == 'false'
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: gh release create "${{ steps.version.outputs.tag }}" --generate-notes --title "CLI v${{ steps.version.outputs.version }}"
-
- name: Notify Discord
if: steps.check.outputs.skip == 'false'
env:
diff --git a/AGENTS.md b/AGENTS.md
index 9957252e7..ed8b32a2c 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -21,10 +21,19 @@ pnpm bump 0.0.11 # explicit version (v prefix optional)
pnpm bump patch # auto-increment patch/minor/major
pnpm bump patch --min-cli # also update MIN_CLI_VERSION in src/web/wrangler.toml
```
-This updates every `src/*/package.json`, commits `release: vX.Y.Z`, but does NOT push.
+This updates every `src/*/package.json`, commits `release: vX.Y.Z`, and creates a local `vX.Y.Z` git tag.
Add `--min-cli` when the release contains breaking changes that require users to update their CLI.
-After reviewing the commit, `git push origin main` to trigger CI:
+
+After reviewing the commit:
+```bash
+git push origin main --tags
+```
+
+This triggers:
+- **CI** — typecheck, lint, tests, coverage (uploaded to Codecov)
+- **Unified GitHub Release** — auto-created with generated changelog after all CI checks pass
- **@alook/cli** → auto-published to npm via `publish-cli.yml` (watches `src/cli/package.json`)
+- **@alook/app** → auto-published to npm via `publish-app.yml` (watches `src/app/package.json`)
- **CF Workers** → each module redeploys when its own `package.json` changes
## Plan-driven Development
diff --git a/scripts/bump-version.mjs b/scripts/bump-version.mjs
index 868ff6e8c..1230d9122 100644
--- a/scripts/bump-version.mjs
+++ b/scripts/bump-version.mjs
@@ -77,8 +77,9 @@ if (updateMinCli) {
const gitFiles = files.map((f) => f.replace(ROOT + "/", ""));
execSync(`git add ${gitFiles.join(" ")}`, { cwd: ROOT, stdio: "inherit" });
execSync(`git commit -m "release: v${version}"`, { cwd: ROOT, stdio: "inherit" });
+execSync(`git tag v${version}`, { cwd: ROOT, stdio: "inherit" });
-console.log(`\n✅ Committed: release: v${version}`);
+console.log(`\n✅ Committed and tagged: v${version}`);
console.log(`\n👉 Next steps:`);
-console.log(` git push origin main`);
+console.log(` git push origin main --tags`);
console.log(` # CI will auto-publish @alook/cli and trigger CF deployments\n`);