Skip to content

ci: skip dev publish when a merged PR bumps the version#118

Merged
ohxyz merged 1 commit into
mainfrom
ci/skip-dev-publish-on-version-bump
Jul 1, 2026
Merged

ci: skip dev publish when a merged PR bumps the version#118
ohxyz merged 1 commit into
mainfrom
ci/skip-dev-publish-on-version-bump

Conversation

@ohxyz

@ohxyz ohxyz commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Mirrors react-bwin's dev-publish guard.

What

  • Adds a check-dev-publish job that runs on the same triggers dev-publish used (merged PR to main, or manual dev_release), diffs package.json's version between the PR base and head, and emits skip=true when the version changed.
  • Rewires dev-publish to needs: check-dev-publish and gate on skip != 'true'. The trigger if: moved up to the guard job.

Why

A version bump means a formal release is being prepared, so cutting an ephemeral -dev-<sha> pre-release off that same merge is wrong. This brings bwin in line with react-bwin, which already has this guard.

The vite.config.js path filter (bwin's, vs react-bwin's .ts) is unchanged.

@ohxyz ohxyz requested a review from bhjsdev as a code owner July 1, 2026 22:57
@ohxyz ohxyz merged commit 5600802 into main Jul 1, 2026
1 check passed
@ohxyz ohxyz deleted the ci/skip-dev-publish-on-version-bump branch July 1, 2026 22:59
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.

1 participant