Skip to content

fix(ci): update squad-release.yml to use GitVersion#7

Merged
mpaulosky merged 1 commit intomainfrom
fix/gitversion-release
Feb 19, 2026
Merged

fix(ci): update squad-release.yml to use GitVersion#7
mpaulosky merged 1 commit intomainfrom
fix/gitversion-release

Conversation

@mpaulosky
Copy link
Copy Markdown
Owner

  • Replace Node.js setup with .NET setup (actions/setup-dotnet@v5)
  • Integrate GitVersion (version 6.3.0) matching squad-ci.yml pattern
  • Extract semantic version from GitVersion outputs (majorMinorPatch)
  • Remove package.json version reading (incompatible with .NET project)
  • Remove Node.js test step (no Node.js tooling in project)
  • Preserve tag deduplication and release creation logic

Release automation now sources version from GitVersion instead of Node.js package.json, aligning with CI pipeline. This ensures a single source of truth for semantic versioning across all workflows.

Pull Request

Description

Closes #

Changes

  • Change 1
  • Change 2
  • Change 3

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed (describe)

Checklist

  • Code follows the project's coding standards (see docs/CONTRIBUTING.md)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated documentation as needed
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Squad Label

Review Notes

Screenshots / Videos

- Replace Node.js setup with .NET setup (actions/setup-dotnet@v5)
- Integrate GitVersion (version 6.3.0) matching squad-ci.yml pattern
- Extract semantic version from GitVersion outputs (majorMinorPatch)
- Remove package.json version reading (incompatible with .NET project)
- Remove Node.js test step (no Node.js tooling in project)
- Preserve tag deduplication and release creation logic

Release automation now sources version from GitVersion instead of
Node.js package.json, aligning with CI pipeline. This ensures a single
source of truth for semantic versioning across all workflows.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 19, 2026 01:46
@mpaulosky mpaulosky added the bug Something isn't working label Feb 19, 2026
@mpaulosky mpaulosky merged commit 5f57402 into main Feb 19, 2026
4 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the release workflow from Node.js/package.json-based versioning to .NET/GitVersion-based versioning, aligning it with the existing CI pipeline pattern. The release automation was previously non-functional for this .NET 10.0 project because it was attempting to read versions from a non-existent package.json file and run Node.js tests.

Changes:

  • Replaced Node.js tooling with .NET setup and GitVersion integration in the release workflow
  • Updated version extraction to use GitVersion's majorMinorPatch output instead of package.json
  • Removed incompatible Node.js test execution from the release workflow
  • Added comprehensive decision documentation and agent history logging

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/squad-release.yml Replaced Node.js setup with .NET setup, integrated GitVersion (matching squad-ci.yml pattern), updated version extraction logic
.ai-team/decisions/inbox/elrond-gitversion-release.md New decision document detailing the problem, solution, implementation, and architectural rationale for GitVersion integration
.ai-team/agents/elrond/history.md Added history entry documenting the release workflow fix, including root cause analysis and impact assessment

uses: actions/setup-dotnet@v5
with:
node-version: 22
global-json-file: Global.json
Copy link

Copilot AI Feb 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow references 'Global.json' but the actual file in the repository is named 'global.json' (lowercase). While this may work on case-insensitive filesystems (like macOS/Windows), it will fail on case-sensitive filesystems used by GitHub Actions runners (Linux). The reference should be changed to 'global.json' to match the exact filename.

Suggested change
global-json-file: Global.json
global-json-file: global.json

Copilot uses AI. Check for mistakes.
@mpaulosky mpaulosky deleted the fix/gitversion-release branch February 20, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants