Repository navigation
feat(version)!: version every package through one code path, with sync as one fixed group - #1098
Open
goosewobbler wants to merge 1 commit into
Open
goosewobbler wants to merge 1 commit into
goosewobbler wants to merge 1 commit into
Conversation
…c as one fixed group One entry point (versionPackages) replaces the sync, single, async and group strategies: a group releases together and every other package on its own, and sync: true is one fixed group of every package that keeps sync's outputs. A one-package sync: false run is now async. One formatter builds every release commit message (#1056), and a sync release no longer bumps a root package the run leaves out (#1085).
Contributor
|
Standing release PR: #1077 · v0.48.0 queued (4 packages) · open 19h 15m · ✅ ready to merge Release Preview — v0.47.1 → v0.48.0
These changes will be added to the release PR (#1077) when merged: Changelogmonorepo 0.47.1 → 0.48.0
After merge — predicted release
Updated automatically by ReleaseKit |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #958 (slice 3). Per ADR 0009 and #1066's Versioning model. Closes #1056 and #1085.
versionPackages(core/versionPackages.ts) replaces the sync, single, async and group strategies andPackageProcessor. Each group releases together and every other package releases on its own. The engine chooses the mode from the config, sosetStrategyand the CLI's and release steps' strategy selection are gone. The group version math moves unchanged tocore/groupVersion.ts.sync: trueis one fixed group of every package and keeps sync's outputs: commits anywhere in the repo count, one changelog (keyed bymainPackage, elsemonorepo) and a shared tag, or per-package ones withpackageSpecificTags, and the root manifests bumped. The version output'sstrategystayssync.sync: falserun isasync.--targetnow applies to it,mainPackageno longer selects it, and it gainssharedPackagesentries.baselineTagTemplateis set), else the repo's latest tag. That is the lookup groups and single mode used. Async loses its manifest fallback, which the version record has replaced, and seeding mirrors the new lookup.${packageName}is the released names and${version}the first version. Without placeholders the template is followed by the names and shared version, or byname@versionwhen versions differ. The defaults are unchanged:chore: release ${packageName} v${version}for sync,chore: release …otherwise.version.packages,--targetor--excludeleaves out.baselineTagTemplate, as group members did.formatCommitMessageis deleted.sync,mainPackage,commitMessageandsharedPackagesdescriptions,version.groups' sync and baseline prose, the release taxonomy, the architecture note, and the version package's README and versioning guide.Testing
native-only.spec.ts: a root crate left out byversion.packagesor--targetisn't bumped. It fails without the fix.release-commits.spec.ts: sync, async and group releases give the same default message and the same filled template, and differing versions listname@version.seed.spec.ts: a package without its own tag seeds from the repo's tag.changelog-tags.spec.ts: a single-package run reportsasync.versionPackages*.spec.ts(sync and per-package, async, and groups). Cases that only tested removed internals are deleted:PackageProcessor's constructor, the manifest fallback, and single-mode selection bymainPackage.pnpm lint,pnpm typecheck,pnpm test(including the real-cargo lock suite) andpnpm --filter @releasekit/version test:integrationpass.