Skip to content

ci: finalize-based pre-release workflow with full OIDC#1011

Merged
christso merged 1 commit intomainfrom
ci/finalize-release
Apr 9, 2026
Merged

ci: finalize-based pre-release workflow with full OIDC#1011
christso merged 1 commit intomainfrom
ci/finalize-release

Conversation

@christso
Copy link
Copy Markdown
Collaborator

@christso christso commented Apr 9, 2026

Summary

  • Add finalize release type to release.ts — strips -next.X suffix without double-bumping (e.g. 4.12.0-next.34.12.0)
  • next releases now require the next branch; stable/finalize require main
  • publish.yml now triggers automatically on any v* tag push — auto-detects channel from version (-next.Xnext tag, else latest)
  • release.yml exposes stable / next / finalize channel input

Release workflow

Step Command Version npm tag
Start pre-release series release next minor on next branch 4.12.0-next.1 next
Iterate release next on next branch 4.12.0-next.2 next
Ship stable release finalize on main branch 4.12.0 latest
Normal stable bump release patch/minor/major on main 4.12.1 etc latest

All paths use NPM_CONFIG_PROVENANCE=true — no stored npm tokens needed.

🤖 Generated with Claude Code

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 9, 2026

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: ca9aa93
Status: ✅  Deploy successful!
Preview URL: https://f97eceba.agentv.pages.dev
Branch Preview URL: https://ci-finalize-release.agentv.pages.dev

View logs

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>
@christso christso force-pushed the ci/finalize-release branch from f1d14da to ca9aa93 Compare April 9, 2026 06:59
@christso christso merged commit e0c9f56 into main Apr 9, 2026
4 checks passed
@christso christso deleted the ci/finalize-release branch April 9, 2026 07:03
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