Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(ci): run CLI release node-gyp step under bash for windows (#65870)

Catalin Irimie6fb4456e8f9a
diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml
index 33cc8867d72b..d3d7880e9318 100644
--- a/.github/workflows/release-cli.yml
+++ b/.github/workflows/release-cli.yml
@@ -437,6 +437,10 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
- name: Fix node-gyp permissions
+ # This job also runs on the Windows runner, where the default
+ # shell is PowerShell and `find` resolves to Windows FIND.exe.
+ # Force bash (git-bash) so find/chmod are the Unix tools.
+ shell: bash
run: find ~/setup-pnpm -name gyp_main.py -exec chmod +x {} +
- name: Setup Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f0f1a2731208..a2310b32368c 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -156,6 +156,10 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
- name: Fix node-gyp permissions
+ # This job also runs on the Windows runner, where the default
+ # shell is PowerShell and `find` resolves to Windows FIND.exe.
+ # Force bash (git-bash) so find/chmod are the Unix tools.
+ shell: bash
run: find ~/setup-pnpm -name gyp_main.py -exec chmod +x {} +
- name: Setup Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
diff --git a/cli/.sampo/changesets/windows-release-build-fix.md b/cli/.sampo/changesets/windows-release-build-fix.md
new file mode 100644
index 000000000000..0f92731d648e
--- /dev/null
+++ b/cli/.sampo/changesets/windows-release-build-fix.md
@@ -0,0 +1,5 @@
+---
+cargo/posthog-cli: patch
+---
+
+Fix the CLI release workflow so the Windows (`x86_64-pc-windows-msvc`) build succeeds and ships with each release.