ci: finalize-based pre-release workflow with full OIDC#1011
Merged
Conversation
Deploying agentv with
|
| Latest commit: |
ca9aa93
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f97eceba.agentv.pages.dev |
| Branch Preview URL: | https://ci-finalize-release.agentv.pages.dev |
Release workflow: - `release next [patch|minor|major]` on `next` branch → 4.12.0-next.1 - `release next` (no bump) → increments pre-release: 4.12.0-next.2 - `release finalize` on `main` → 4.12.0 (strips -next.X, no double-bump) - `release patch|minor|major` on `main` → normal stable bump Publish workflow: - Triggers automatically on any v* tag push - Auto-detects channel from version: -next.X → next tag, else latest - Both paths use NPM_CONFIG_PROVENANCE for OIDC (no stored tokens) - Manual dispatch kept for ad-hoc publishes release.ts: - Add finalize channel: strips -next.X suffix, requires main branch - next channel: requires next branch - Branch-aware git pull/push Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
f1d14da to
ca9aa93
Compare
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
finalizerelease type torelease.ts— strips-next.Xsuffix without double-bumping (e.g.4.12.0-next.3→4.12.0)nextreleases now require thenextbranch; stable/finalize requiremainpublish.ymlnow triggers automatically on anyv*tag push — auto-detects channel from version (-next.X→nexttag, elselatest)release.ymlexposesstable/next/finalizechannel inputRelease workflow
release next minoronnextbranch4.12.0-next.1nextrelease nextonnextbranch4.12.0-next.2nextrelease finalizeonmainbranch4.12.0latestrelease patch/minor/majoronmain4.12.1etclatestAll paths use
NPM_CONFIG_PROVENANCE=true— no stored npm tokens needed.🤖 Generated with Claude Code