Skip to content

Rewrite release changelog script in JS, fix model ID and tag fetching#110

Merged
coreymartin merged 4 commits intomainfrom
corey/fix-release-workflow
Feb 27, 2026
Merged

Rewrite release changelog script in JS, fix model ID and tag fetching#110
coreymartin merged 4 commits intomainfrom
corey/fix-release-workflow

Conversation

@coreymartin
Copy link
Copy Markdown
Contributor

@coreymartin coreymartin commented Feb 26, 2026

Summary

Fixes the release workflow's changelog generation step which was failing in CI due to:

  1. Brittle shell-to-JSON escaping — replaced Python script with a native JS script (.github/scripts/generate-changelog.mjs) since this is a Node project
  2. Wrong model ID — corrected to claude-sonnet-4-6
  3. Missing tags — added git fetch origin --tags so the version tag is available for the git log range

Changes

  • .github/scripts/generate-changelog.mjs — new JS script that calls the Anthropic API to determine patch/minor bump and generate a user-facing changelog
  • .github/scripts/generate-changelog.py — deleted
  • .github/workflows/release.yaml — uses node instead of python3, explicit tag fetching, temporary PR trigger for validation

Test plan

  • Verify the create-release-pr check passes on this PR (AI step runs successfully)
  • After merge, trigger workflow_dispatch and verify full release PR creation flow
  • Remove temporary PR trigger from release.yaml after validation

🤖 Generated with Claude Code

The shell-based JSON construction was failing due to escaping issues.
Replaced with a standalone Python script that handles JSON natively.

Also adds a temporary PR trigger on workflow/script changes for validation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
origin-storybook Ready Ready Preview, Comment Feb 27, 2026 0:00am

Request Review

- Use claude-sonnet-4-6-20250514 (correct model ID)
- Fetch tags explicitly before computing git log range
- Add debug output for tag/commit visibility

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coreymartin coreymartin changed the title Fix release workflow: use Python script for API call Rewrite release changelog script in JS, fix model ID and tag fetching Feb 26, 2026
@coreymartin coreymartin merged commit 08522b3 into main Feb 27, 2026
8 of 9 checks passed
@coreymartin coreymartin deleted the corey/fix-release-workflow branch February 27, 2026 00:51
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