Skip to content

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

Open
darkobas2 wants to merge 1 commit into
masterfrom
ci/swarm-cli-bee-version-bump
Open

ci: auto-bump Bee version in Swarm CLI on stable release#5536
darkobas2 wants to merge 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.

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>
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.

2 participants