This document describes the step-by-step manual release process for opencode-model-fallback using AI assistance to analyze commits, generate release notes, and trigger the GitHub Actions workflow via opencode (with gh CLI integration).
- AI-driven commit analysis - analyze commit history since last release
- AI-generated release notes following strict formatting conventions
- Preview and review - release notes shown before any actions taken
- Human review and approval for quality control
- Workflow dispatch - trigger GitHub Actions via
ghCLI - Automated publish - existing workflow handles npm publish and GitHub Release creation
- opencode installed
- GitHub CLI (
gh) installed and authenticated (gh auth login) - Understanding of conventional commit patterns
- Trusted publishing configured on npmjs.com (no token required)
Use this prompt in opencode to handle the entire release process:
I need to create a new release for opencode-model-fallback. Please:
STEP 1: ANALYZE COMMITS
- Use `gh` CLI or available tools to get the latest release tag
- Fetch all commits between that tag and current HEAD
- Analyze each commit for user-facing changes
STEP 2: GENERATE RELEASE NOTES
Create structured release notes with this EXACT format:
### Breaking Changes
[Only if breaking changes exist - triggers major version]
- Description focusing on user impact (abc1234)
### New Features
- Feature description emphasizing user benefit (abc1234)
### Improvements
- Improvement description with user impact (abc1234)
### Bug Fixes
- Fix description focusing on resolved user issue (abc1234)
REQUIREMENTS:
- Focus ONLY on user-facing changes and impact
- EXCLUDE: docs, build, ci, chore, refactor, test commits
- Use active voice, present tense
- Include commit short hashes (GitHub renders as links)
- Semver version logic (major.minor.patch):
- PATCH: bug fixes, docs, build/CI changes only
- MINOR: new features, improvements, backwards compatible
- MAJOR: breaking changes
- Show this preview BEFORE any actions
STEP 3: SHOW PREVIEW
Display the generated release notes and ask for approval before proceeding.
STEP 4: TRIGGER WORKFLOW (after approval)
Use `gh workflow run` to trigger the "Publish Release" workflow:
gh workflow run release.yml \
-f release_tag="v[VERSION]" \
-f release_notes="[generated content]" \
-f draft=false \
-f prerelease=false
Please start with Step 1 - analyze the commits and show me the preview.
opencode will:
- Analyze commits since last release via
ghCLI - Generate release notes with proper formatting and categorization
- Show preview and ask for approval
- Trigger GitHub Actions workflow with the release notes
- Workflow sets the package version, publishes to npm with provenance, and creates a GitHub Release
- Automatic filtering of technical commits (docs, tests, CI, etc.)
- User-focused release notes with clear impact descriptions
- Semver versioning - patch for fixes, minor for features, major for breaking changes
- Preview before action - human approval required
- npm provenance - published packages include provenance attestation
- gh CLI issues: Run
gh auth statusto verify authentication - Workflow dispatch failed: Check repository permissions for workflow dispatch
- npm publish failed: Verify trusted publishing is configured on npmjs.com
- Invalid release notes: Review format requirements and regenerate