Skip to content

🀯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

1.8 KB
Raw Blame

Minor Release Workflow

Used to publish a new minor version (e.g. v2.2.0), roughly every 4 weeks. The PR title carries the exact version number; CI parses it to drive the rest of the release.

Steps

  1. Create a release branch from canary

    git checkout canary
    git pull origin canary
    git checkout -b release/v{version}
    git push -u origin release/v{version}
    
  2. Determine the version number β€” Read the current version from package.json and compute the next minor version (e.g. 2.1.x β†’ 2.2.0).

  3. Create a PR to main

    gh pr create \
      --title "πŸš€ release: v{version}" \
      --base main \
      --head release/v{version} \
      --body-file release_body.md
    

    [!IMPORTANT] The PR title must strictly match the πŸš€ release: v{x.y.z} format. CI uses a regex on this title to determine the exact version number.

  4. Write the PR body as release notes β€” Follow release-notes-style.md. Compare base is the latest semver tag on main (git describe --tags --abbrev=0 origin/main).

  5. While the PR is open β€” release-pr-version.yml commits package.json to the title version if it is not already there.

  6. After merge β€” auto-tag-release reads the title version, tags v{x.y.z} on the merge commit, and creates the GitHub Release.

Scripts

bun run release:branch         # Interactive
bun run release:branch --minor # Directly specify minor

Hard Rules (specific to Minor)

  • PR title format is strict: πŸš€ release: v{x.y.z}. Any deviation falls through to patch detection.
  • Do NOT manually modify package.json version β€” CI commits it onto the release PR.
  • Do NOT manually create the tag β€” CI will tag.
  • Highlights bullet count is usually 8–12 (see release-notes-style.md size heuristics).