Skip to content

fix(ci): switch GITHUB_OUTPUT to GITHUB_ENV and isolate npm install#355

Merged
solidsnakedev merged 1 commit into
mainfrom
fix/post-release-to-x-ci
May 17, 2026
Merged

fix(ci): switch GITHUB_OUTPUT to GITHUB_ENV and isolate npm install#355
solidsnakedev merged 1 commit into
mainfrom
fix/post-release-to-x-ci

Conversation

@solidsnakedev
Copy link
Copy Markdown
Collaborator

Two bugs fixed in the post-release-to-x workflow:

Fix 1 — Steps skipping despite found=true (Mode B)

echo "found=$FOUND" >> $GITHUB_OUTPUT inside a multi-line run: | block was silently corrupting the value, causing if: steps.releases.outputs.found == 'true' to evaluate false every time. Switched to GITHUB_ENV (env.HAS_RELEASES) which writes to a clean file and avoids stdout-parsing edge cases.

Fix 2 — npm install peer dep conflict (Mode C)

npm install twitter-api-v2@1 in the monorepo root triggered full dependency resolution, hitting the @effect/docgentypescript@^5.2.2 vs typescript@^6.0.3 mismatch. Now installs in an isolated temp dir (/tmp/tweet-lib/) with its own empty package.json.

Test plan:

  • Create a test release with @evolution-sdk/ tag
  • Dispatch workflow_dispatch within 1 hour
  • Verify all steps show completed | success instead of skipped
  • Verify tweets are posted to X

Two bugs fixed in post-release-to-x workflow:

1. Mode B: Replace steps.releases.outputs.found (GITHUB_OUTPUT) with env.HAS_RELEASES (GITHUB_ENV). The output-based approach was silently corrupting the value inside the multi-line run block, causing all downstream if: conditions to skip.

2. Mode C: Run npm install twitter-api-v2 in an isolated temp dir instead of the monorepo root to avoid peer dependency conflicts (e.g. @effect/docgen requiring typescript@^5.2.2 vs project using typescript@^6.0.3).
@solidsnakedev solidsnakedev merged commit 28b1d01 into main May 17, 2026
10 checks passed
@solidsnakedev solidsnakedev deleted the fix/post-release-to-x-ci branch May 17, 2026 22:53
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