Skip to content

ci: auto-bump Bee version in Swarm CLI on stable release - #5536

Merged
darkobas2 merged 1 commit into
masterfrom
ci/swarm-cli-bee-version-bump
Jul 20, 2026
Merged

darkobas2 merged 1 commit into
masterfrom
ci/swarm-cli-bee-version-bump

Conversation

@darkobas2

Copy link
Copy Markdown
Contributor

Closes ethersphere/infra_tasks#91.

What

On a stable Bee release, dispatch swarm-cli's update-bee-version.yaml workflow (added in ethersphere/swarm-cli#760) with the release tag. That workflow bumps beeVersion in quickstart.ts and opens a PR on the Swarm CLI — removing the manual step.

How

  • Triggers on release: [released] → stable only (skips drafts/pre-releases/RCs).
  • Passes github.event.release.tag_name (e.g. v2.9.0, matches their validator) as the version input.
  • Cross-repo workflow_dispatch needs more than GITHUB_TOKEN, so it uses the BEE_RUNNER GitHub App (the same App swarm-cli's workflow uses), scoped to swarm-cli.
  • workflow_dispatch added too, so it can be tested/re-run manually with an explicit version.

Note

Requires the BEE_RUNNER App to have actions:write on swarm-cli (to dispatch). If it doesn't, the manual test will show it and we can switch the token to GHA_PAT_ADVANCED (bee-worker already has write on swarm-cli). BEE_RUNNER_APP_ID/BEE_RUNNER_KEY are already visible to this repo.

@darkobas2
darkobas2 force-pushed the ci/swarm-cli-bee-version-bump branch from 8613b65 to b3e2033 Compare July 20, 2026 13:59
On a stable Bee release, dispatch swarm-cli's update-bee-version
workflow (ethersphere/swarm-cli#760) with the release tag, so the
Swarm CLI's pinned Bee version is bumped automatically via PR.
Cross-repo dispatch uses the BEE_RUNNER GitHub App scoped to
swarm-cli.

Closes ethersphere/infra_tasks#91.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@darkobas2
darkobas2 force-pushed the ci/swarm-cli-bee-version-bump branch from b3e2033 to a7b0e6d Compare July 20, 2026 14:07
@darkobas2
darkobas2 merged commit ffea29f into master Jul 20, 2026
15 checks passed
@darkobas2
darkobas2 deleted the ci/swarm-cli-bee-version-bump branch July 20, 2026 14:28
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.

4 participants