Skip to content

ci(release): release next from a dedicated branch and restore requireCommits - #25

Merged
Upd4ting merged 1 commit into
mainfrom
ci/next-branch-releases
Sep 23, 2026
Merged

Upd4ting merged 1 commit into
mainfrom
ci/next-branch-releases

Conversation

@Upd4ting

Copy link
Copy Markdown
Member

Summary

Adopt the branch-bound npm release channels introduced in the org reusable workflow (AntelopeJS/.github#10, merge commit f4ce81591d09d271a480fd796e12a725cc973e0f): latest is released only from the default branch and next only from a branch named next. The workflow now passes --git.requireBranch=<branch> to release-it and, on latest, ignores prerelease tags when computing the changelog and version.

  • .github/workflows/release.yml: bump the pinned reusable workflow from e541e89 to f4ce815. Inputs, secrets and permissions are unchanged (channel choice latest/next).
  • .release-it.json: remove git.requireBranch (the workflow is now the single source of truth for the release branch). git.requireCommits was already true and stays so.
  • CONTRIBUTING.md: add a short "Releases" section pointing to the org-wide Release channels guide.

Related issue

Follow-up to AntelopeJS/.github#10. Same change as AntelopeJS/antelopejs#155 and AntelopeJS/api#52.

Verification

  • pnpm prepack, pnpm lint, pnpm format:check, pnpm knip: pass.
  • pnpm test: pass (83 passing).
  • actionlint .github/workflows/release.yml (rhysd/actionlint v1.7.12): no findings.
  • CI=true pnpm exec release-it --ci --dry-run --no-npm.publish --no-github.release --git.requireBranch=ci/next-branch-releases: exits 0. The config parses, requireCommits passes (there are commits since v0.0.13), and release-it proposes 0.0.13...0.0.14 with the expected changelog. The local package.json bump was reverted and no release was triggered.

Checklist

  • The pull request title follows Conventional Commits.
  • I added or updated tests when behavior changed. N/A: CI configuration only.
  • I updated documentation when users or contributors are affected.
  • I documented breaking changes and migration steps. N/A: no breaking change.
  • I did not include credentials or unrelated changes.

@Upd4ting
Upd4ting merged commit 5dbc7d6 into main Sep 23, 2026
2 checks passed
@Upd4ting
Upd4ting deleted the ci/next-branch-releases branch September 23, 2026 16:40
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