Skip to content

chore: switch version_bump workflow to deno bump-version#7121

Draft
crowlbot wants to merge 1 commit intodenoland:mainfrom
crowlbot:chore/use-bump-version
Draft

chore: switch version_bump workflow to deno bump-version#7121
crowlbot wants to merge 1 commit intodenoland:mainfrom
crowlbot:chore/use-bump-version

Conversation

@crowlbot
Copy link
Copy Markdown

Summary

  • Replaces the jsr:@deno/bump-workspaces dependency in
    .github/workflows/version_bump.yml with the workspace-aware
    deno bump-version subcommand.
  • Branch + PR creation moves into the workflow (gh pr create); the Rust
    tool only rewrites files (deno.json versions, import_map.json jsr:
    refs, Releases.md).
  • Marked draft because this depends on the new subcommand shipping in a
    Deno release.

Depends on

denoland/deno#33689 — adds workspace mode to deno bump-version. This PR
pins denoland/setup-deno to canary so it picks up the new behavior;
once deno bump-version workspace support lands in a stable Deno release,
swap the pin to that version.

Behavioral parity

The new tool mirrors @deno/bump-workspaces:

  • conventional-commit prefixes: BREAKING / feat / fix / perf / docs /
    deprecation / refactor / test / style / chore
  • * wildcard scope
  • scope/unstable and unstable/scope clamp the bump to patch
  • 0.x.y semver downgrades (BREAKING → minor, feat → patch)
  • prerelease counter bump for prerelease versions
  • jsr: ref rewriting in the import map

Test plan

  • Trigger the version_bump workflow manually after deno bump-version
    workspace support lands.
  • Compare the resulting PR's Releases.md and deno.json diffs with
    the previous release cycle's PR for an apples-to-apples check.

Tracking

Tracking issue: crowlKats/agent-loop#19

Replaces the dependency on `jsr:@deno/bump-workspaces` with the
workspace-aware `deno bump-version` subcommand introduced in
denoland/deno#33689. The Rust tool handles the same conventional-commit
parsing, jsr: import-map rewriting, and Releases.md generation, while
branch creation and PR opening move into this workflow (using `gh pr`).

The workflow now:
- pins to a Deno version that includes the workspace-aware bump-version,
- runs `deno bump-version --import-map import_map.json` at the
  workspace root (auto-detects workspace mode and conventional-commits
  mode when no increment is passed),
- creates a release branch + PR with the resulting changes.
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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