fix(release): keep finalize versions on main - #1437
Merged
Merged
Conversation
Deploying agentv with
|
| Latest commit: |
ddee077
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://2737618c.agentv.pages.dev |
| Branch Preview URL: | https://finalize-main-version.agentv.pages.dev |
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.
Summary
Finalizing a prerelease now leaves the stable package versions on
maininstead of only on a detached release tag. The release script still promotes the exact prerelease tag: it requiresmainto point at that tag before creating a new stable release commit, and it refuses to finalize if additional commits have landed first.If a stable tag was already created by the old detached flow, rerunning finalize fast-forwards
mainto that existing release commit. The publish workflow now resolves and validates the prerelease tag without checking it out, sorelease.tscan commit and push the stable versions onmain.Validation
bunx biome check scripts/release.tsbunx tsc --noEmit --target ES2022 --module NodeNext --moduleResolution NodeNext --types bun --strict --skipLibCheck scripts/release.tsbun -e "import { readFileSync } from 'node:fs'; import { parse } from 'yaml'; parse(readFileSync('.github/workflows/publish.yml', 'utf8'));"git diff --checkorigin/mainat2.0.0-next.1while pushingv2.0.0origin/mainandv2.1.0at stable version2.1.0origin/mainto2.2.0mainmoved pastv2.3.0-next.1