The fastest browser for AI agents to run browser automation, built for sharing your logged-in browser state with your AI agents, like Codex or Claude Code, without disturbing you. Zero cost, zero config.
JavaScript agent-skillsai-agentautomationbrowserbrowser-automationclaude-codecodexhermes-agentskillsskills-sh
Update release workflow
Tachikoma73daa7131ac1
diff --git a/.github/release.yml b/.github/release.ymlnew file mode 100644index 0000000..7786a22--- /dev/null+++ b/.github/release.yml@@ -0,0 +1,24 @@+changelog:+ categories:+ - title: Features+ labels:+ - feat+ - feature+ - enhancement+ - title: Fixes+ labels:+ - fix+ - bug+ - bugfix+ - title: Documentation+ labels:+ - docs+ - documentation+ - title: Maintenance+ labels:+ - chore+ - ci+ - refactor+ - title: Other Changes+ labels:+ - "*"diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex dcd8f7a..4cabe5b 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -3,11 +3,10 @@ name: CIon:push:branches:+ - dev- maintags:- - "*"- - "!last"- - "!latest"+ - "v*.*.*"pull_request:jobs:@@ -28,13 +27,14 @@ jobs:- run: npm run validate:site-skillsrelease:- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && github.ref_name != 'last' && github.ref_name != 'latest'+ if: github.event_name == 'push' && (github.ref_name == 'dev' || startsWith(github.ref, 'refs/tags/v'))needs: testruns-on: ubuntu-latestpermissions:contents: writedefaults:run:+ shell: bashworking-directory: package/ego-browsersteps:- uses: actions/checkout@v4@@ -47,34 +47,113 @@ jobs:cache-dependency-path: package/ego-browser/package-lock.json- run: npm ci- run: npm run build+ - name: Resolve release channel+ id: release+ run: |+ ref_name="${GITHUB_REF_NAME}"+ short_sha="$(git rev-parse --short HEAD)"+ supported="true"+ previous_tag=""++ if [ "$ref_name" = "dev" ]; then+ version_tag="nightly-$(date -u +%Y%m%d)-$short_sha"+ release_tag="$version_tag"+ title="Nightly $version_tag"+ prerelease="true"+ latest="false"+ previous_tag="$(git tag --merged HEAD --sort=-creatordate --list 'nightly-*' | grep -v "^$release_tag$" | head -1 || true)"+ elif [[ "$ref_name" =~ ^v[0-9]+\.[0-9]+\.[0-9]+-beta\.[0-9]+$ ]]; then+ release_tag="$ref_name"+ version_tag="$ref_name"+ title="Beta $ref_name"+ prerelease="true"+ latest="false"+ previous_tag="$(git tag --merged HEAD --sort=-creatordate --list 'v*.*.*-beta.*' | grep -v "^$release_tag$" | head -1 || true)"+ elif [[ "$ref_name" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then+ release_tag="$ref_name"+ version_tag="$ref_name"+ title="ego lite $ref_name"+ prerelease="false"+ latest="true"+ previous_tag="$(git tag --merged HEAD --sort=-creatordate --list 'v*.*.*' | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | grep -v "^$release_tag$" | head -1 || true)"+ else+ echo "Unsupported release ref: $ref_name"+ supported="false"+ fi++ {+ echo "supported=$supported"+ echo "release_tag=$release_tag"+ echo "version_tag=$version_tag"+ echo "title=$title"+ echo "prerelease=$prerelease"+ echo "latest=$latest"+ echo "previous_tag=$previous_tag"+ } >> "$GITHUB_OUTPUT"- name: Package release payload+ if: steps.release.outputs.supported == 'true'run: |- version_tag="${GITHUB_REF_NAME}"+ version_tag="${{ steps.release.outputs.version_tag }}"cd dist/outzip -r "../ego-browser-${version_tag}.zip" .- - name: Create tag release+ - name: Create release+ if: steps.release.outputs.supported == 'true'env:GH_TOKEN: ${{ github.token }}run: |cd "$GITHUB_WORKSPACE"- version_tag="${GITHUB_REF_NAME}"+ release_tag="${{ steps.release.outputs.release_tag }}"+ version_tag="${{ steps.release.outputs.version_tag }}"+ title="${{ steps.release.outputs.title }}"+ prerelease="${{ steps.release.outputs.prerelease }}"+ latest="${{ steps.release.outputs.latest }}"+ previous_tag="${{ steps.release.outputs.previous_tag }}"commit_sha="$(git rev-parse HEAD)"- short_sha="$(git rev-parse --short HEAD)"artifact="package/ego-browser/dist/ego-browser-${version_tag}.zip"+ notes_file="$(mktemp)"+ release_args=()+ notes_args=()- if ! git merge-base --is-ancestor "$commit_sha" origin/main; then- echo "Release tags must point to commits reachable from main."+ if [[ "$release_tag" == nightly-* ]]; then+ git tag -f "$release_tag" "$commit_sha"+ git push -f origin "refs/tags/$release_tag"+ elif [ "$prerelease" = "false" ] && ! git merge-base --is-ancestor "$commit_sha" origin/main; then+ echo "Stable release tags must point to commits reachable from main."exit 1fi- if gh release view "$version_tag" >/dev/null 2>&1; then- echo "Release $version_tag already exists; leaving it unchanged."+ if [ "$prerelease" = "true" ]; then+ release_args+=(--prerelease)+ fi++ if [ "$latest" = "true" ]; then+ release_args+=(--latest)+ else+ release_args+=(--latest=false)+ fi++ if [ -n "$previous_tag" ]; then+ notes_args+=(-f "previous_tag_name=$previous_tag")+ fi++ gh api "repos/${GITHUB_REPOSITORY}/releases/generate-notes" \+ -f tag_name="$release_tag" \+ -f target_commitish="$commit_sha" \+ "${notes_args[@]}" \+ --jq .body > "$notes_file"++ if gh release view "$release_tag" >/dev/null 2>&1; then+ gh release edit "$release_tag" \+ --title "$title" \+ --notes-file "$notes_file" \+ "${release_args[@]}"+ gh release upload "$release_tag" "$artifact" --clobberelse- gh release create "$version_tag" \- --title "$version_tag" \- --notes "Auto-built from $version_tag ($short_sha)" \+ gh release create "$release_tag" \+ --title "$title" \+ --notes-file "$notes_file" \--verify-tag \- --latest=false \+ "${release_args[@]}" \"$artifact"fidiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex f497926..8d2c73b 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -298,6 +298,9 @@ A PR description should include at minimum:3. **How to verify** — repro / verification steps; attach screenshots or heredoc examples for UI behavior4. Impact callout (does it touch the helper surface? does the agent side need updates?)+Add at least one release-note label so generated releases are grouped correctly:+`feat` / `fix` / `docs` / `chore` / `ci` / `refactor`.+### Review Checklist- [ ] `npm test` is green@@ -313,8 +316,11 @@ A PR description should include at minimum:- CI config: `.github/workflows/ci.yml`- Every push / PR: on Node 22 + ubuntu-latest, runs `npm ci` → `npm test` → `npm run validate:site-skills`- - After push to `main`: the `release` job rebuilds `artifacts/ego-browser/index.js` and **force-updates** the GitHub Release tagged `latest`-- So "releasing" = merging to `main`. Release through PRs — do not hand-push tags.+ - After push to `dev`: the `release` job builds a `nightly-YYYYMMDD-SHA` prerelease+ - Tags matching `vX.Y.Z-beta.N`: build a beta prerelease+ - Tags matching `vX.Y.Z`: build a stable release and mark it as latest+- Release notes are generated automatically from merged PRs and grouped by `.github/release.yml` labels: Features, Fixes, Documentation, Maintenance, and Other Changes.+- Normal flow: merge features into `dev` for nightly, cut beta tags from `dev`, then merge `dev` to `main` and cut stable `vX.Y.Z` tags from `main`.- The build script `scripts/build.mjs` uses `.build.lock` to prevent concurrent builds.---