Fix release workflow git configuration and upstream checks#15
Merged
Conversation
- Set package.json version to 0.0.1 - Set requireUpstream to false in release-it config (actions/checkout doesn't set up branch tracking, causing release-it to fail) - Set getLatestTagFromAllRefs to true so release-it can find tags - Move git config before version detection in auto-release workflow - Set up branch tracking in both release workflows - Capture stderr from release-it --release-version to aid debugging https://claude.ai/code/session_01RWAqFwsHjJ8qnR2WRs5eVM
Contributor
Release Version Check
This version will be released automatically when this PR is merged to Changelog preview0.1.0 (2026-03-05)Features
Bug Fixes
Refactoring
Documentation
Tests
CI/CD
Chores
|
Contributor
Preview DeploymentThe web app for this PR has been deployed: Use this to verify the app works correctly, especially for dependency updates. |
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
This PR fixes issues with the automated release workflow by improving git configuration setup and adjusting release-it settings to handle CI environments more robustly.
Key Changes
git branch --set-upstream-to=origin/main maincommand in both auto-release and release workflows to ensure proper upstream tracking, preventing release-it from failing on upstream checksrequireUpstreamfromtruetofalseto allow releases in CI environments where upstream tracking may not be fully establishedgetLatestTagFromAllRefsfromfalsetotrueto properly detect tags from all refs in CIImplementation Details
The workflow now properly configures git before attempting any version detection, and the release-it configuration is more lenient with upstream requirements while being more thorough in tag detection. This combination should resolve CI-specific issues where git state isn't fully initialized before running release-it commands.
https://claude.ai/code/session_01RWAqFwsHjJ8qnR2WRs5eVM