Skip to content

feat: add manually dispatchable workflow to switch changeset pre mode - #495

Merged
fabiankaegy merged 1 commit into
developfrom
feature/manual-changeset-mode-workflow
Aug 18, 2026
Merged

feat: add manually dispatchable workflow to switch changeset pre mode#495
fabiankaegy merged 1 commit into
developfrom
feature/manual-changeset-mode-workflow

Conversation

@fabiankaegy

Copy link
Copy Markdown
Member

What

Adds a way to switch the changeset pre-release mode directly from the GitHub Actions UI, without needing a local checkout.

  • New Changeset Mode workflow (workflow_dispatch): pick the target branch in the dispatch dropdown and choose a mode:

    • exit-pre (promote to actual release) — runs npx changeset pre exit, commits .changeset/pre.json, and pushes
    • enter-pre (next) — the reverse, puts the branch back into next pre-release mode

    Both directions no-op with a message if the branch is already in the requested state, mirroring the guards in the existing release workflow.

  • Release workflow now supports workflow_dispatch: the mode-switch commit is pushed with the default GITHUB_TOKEN, which intentionally does not trigger other workflows — so after switching modes you can kick a release run manually on the same branch (or just wait for the next regular push).

Notes

  • Exiting pre mode on develop is not immediately undone by the auto "Enter pre next" step: changeset pre exit leaves pre.json in place (marked exited), so the [[ ! -f pre.json ]] guard stays false until changeset version removes the file. Once the release lands, the next develop push re-enters next mode as before.
  • The new workflow becomes dispatchable in the Actions UI once this lands on the default branch.

🤖 Generated with Claude Code

Copilot AI lite review requested due to automatic review settings August 18, 2026 08:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@changeset-bot

changeset-bot Bot commented Aug 18, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 05a416a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@fabiankaegy
fabiankaegy force-pushed the feature/manual-changeset-mode-workflow branch from 1f907a4 to 05a416a Compare August 18, 2026 08:28
@fabiankaegy
fabiankaegy merged commit be98b25 into develop Aug 18, 2026
8 checks passed
@fabiankaegy
fabiankaegy deleted the feature/manual-changeset-mode-workflow branch August 18, 2026 08:36
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