Skip to content

Merge gh install into publish step for same-process PATH - #324

Merged
Finesssee merged 1 commit into
mainfrom
fix/circleci-gh-inline-install
Aug 15, 2026
Merged

Merge gh install into publish step for same-process PATH#324
Finesssee merged 1 commit into
mainfrom
fix/circleci-gh-inline-install

Conversation

@Finesssee

@Finesssee Finesssee commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • merge the GitHub CLI install step into the publish step's command block so they share the same PowerShell process
  • the previous approach (separate run steps) failed because CircleCI runs each run step as a separate shell process — PATH changes in one step do not propagate to the next
  • within a single run step, child processes (including the spawned powershell.exe for publish-github-release.ps1) inherit the parent's $env:Path

Root cause

Pipelines #38 and #39: gh was installed in a separate run step and the directory was added to PATH, but the publish run step started a new shell that did not inherit the PATH change.

Validation

  • circleci config validate passed
  • no version files changed

View with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is enabled.

@Finesssee
Finesssee merged commit 59651bd into main Aug 15, 2026
3 checks passed
@Finesssee
Finesssee deleted the fix/circleci-gh-inline-install branch August 15, 2026 08:48
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