Skip to content

fix(ci): make tag version gate shell-safe - #8

Merged
alexrett merged 1 commit into
mainfrom
agent/fix-release-check
Aug 5, 2026
Merged

fix(ci): make tag version gate shell-safe#8
alexrett merged 1 commit into
mainfrom
agent/fix-release-check

Conversation

@alexrett

@alexrett alexrett commented Aug 5, 2026

Copy link
Copy Markdown
Owner

The first v0.3.1 run stopped safely before publishing because nested shell quotes made the tag/version gate invalid.

This rewrites the gate as a two-line shell check. Verified locally against v0.3.1 and parsed the workflow as YAML.

Copilot AI lite review requested due to automatic review settings August 5, 2026 19:24
@alexrett
alexrett merged commit 5d3a56a into main Aug 5, 2026
4 checks passed
@alexrett
alexrett deleted the agent/fix-release-check branch August 5, 2026 19:25

Copilot AI left a comment

Copy link
Copy Markdown

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 fixes the GitHub Actions release workflow’s tag ↔ package version gate by rewriting the run: command into a multi-line shell script with safe, non-nested quoting, so tag-based releases reliably stop before publishing when versions don’t match.

Changes:

  • Replace the one-liner test command with a two-line script that extracts package.json’s version into PACKAGE_VERSION.
  • Compare v${PACKAGE_VERSION} to ${GITHUB_REF_NAME} using a straightforward test to fail the job on mismatch.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants