con un clic
backmerge
// Backmerge the release branch into develop after the release PR has been merged to main. Activate when the user says "backmerge", "/backmerge", or asks to backmerge after a release PR merges.
// Backmerge the release branch into develop after the release PR has been merged to main. Activate when the user says "backmerge", "/backmerge", or asks to backmerge after a release PR merges.
How to create a changeset in this monorepo. Use when adding a new changeset, when the user invokes /changeset, or when committing changes that need a version bump.
Commit message convention for this repo (gitmoji + scope + capitalized message) enforced by the danger CI bot. Use whenever creating commits, when the user invokes /commit, or when fixing commit messages that failed CI.
Release one or more packages from this monorepo using the scripts in agent-files/scripts/release/. Activate when the user says "release", "/release", or asks to release specific packages (e.g. "/release dmk signer-eth").
| name | backmerge |
| description | Backmerge the release branch into develop after the release PR has been merged to main. Activate when the user says "backmerge", "/backmerge", or asks to backmerge after a release PR merges. |
Backmerge the release branch into develop after the release PR has been merged to main.
The following commands need network access or post-install scripts, so they will trigger a permission prompt (Claude Code) or must be run with required_permissions: ["all"] (Cursor):
pnpm install (Step 5 — post-install scripts, native deps)git push -u origin chore/backmerge + gh pr create ... (Step 7 — network + gh)All other scripts (revert-private, unpin-deps) run fine inside the sandbox.
All revert/unpin scripts live in agent-files/scripts/release/ and are run with pnpm exec zx.
git checkout main && git pull
main with the merged release PR.git checkout -b chore/backmerge
pnpm exec zx agent-files/scripts/release/revert-private.cjs
private flags on all packages to their pre-release state.private: false in their package.json files.pnpm exec zx agent-files/scripts/release/unpin-deps.cjs
^1.2.3) back to workspace:^ for internal dependencies.pnpm install
workspace:^ deps.git add .
git commit -m "🔧 (release): Reset private packages after release"
git push -u origin chore/backmerge
gh pr create -B develop --title "🔀 (release) [NO-ISSUE]: Backmerge release into develop" -F .github/pull_request_backmerge_template.md
If there are conflicts between main and develop:
develop into the backmerge branch to resolve conflicts.revert-private.cjs or unpin-deps.cjs fails, ensure the release PR was actually merged to main first.gh pr create fails, ensure gh CLI is authenticated (gh auth status) and the branch is pushed.