From 01e0905e8b76f537db5ad4cb59beeb552608b0c3 Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Thu, 2 Jul 2026 19:23:42 +0300 Subject: [PATCH] fix(ci): run OpenCode CLI version step in bash The release workflow reads the pinned @opencode-ai/sdk version with bash command-substitution syntax before caching the bundled OpenCode CLI artifact. On Windows jobs GitHub Actions defaults run steps to PowerShell, which treated VERSION= as a command and failed before the cache/build steps ran. Set shell: bash on the release workflow version-discovery steps so macOS and Windows use the same syntax. The smoke workflow already used bash for the Windows version step, which is why the smoke artifact could pass while the production Windows release job failed. --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef66d355..68390b3f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -148,6 +148,7 @@ jobs: - name: Get bundled OpenCode CLI version id: opencode_cli_version + shell: bash run: | VERSION=$(node -p "require('./package.json').dependencies['@opencode-ai/sdk']") echo "version=$VERSION" >> "$GITHUB_OUTPUT" @@ -294,6 +295,7 @@ jobs: - name: Get bundled OpenCode CLI version id: opencode_cli_version + shell: bash run: | VERSION=$(node -p "require('./package.json').dependencies['@opencode-ai/sdk']") echo "version=$VERSION" >> "$GITHUB_OUTPUT"