From 8b05743df27d4589330e26102a1c70ae429e0a68 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 20 Apr 2026 18:22:19 +0100 Subject: [PATCH] ci(windows): normalize node path for bash --- .github/actions/setup-node-env/action.yml | 7 ++++++- .github/workflows/ci.yml | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-node-env/action.yml b/.github/actions/setup-node-env/action.yml index 71ad9b9f60c..10260f0de6c 100644 --- a/.github/actions/setup-node-env/action.yml +++ b/.github/actions/setup-node-env/action.yml @@ -59,7 +59,12 @@ runs: - name: Capture node path if: inputs.install-deps == 'true' shell: bash - run: echo "NODE_BIN=$(dirname "$(node -p "process.execPath")")" >> "$GITHUB_ENV" + run: | + node_bin="$(dirname "$(node -p 'process.execPath')")" + if command -v cygpath >/dev/null 2>&1; then + node_bin="$(cygpath -u "$node_bin")" + fi + echo "NODE_BIN=$node_bin" >> "$GITHUB_ENV" - name: Install dependencies if: inputs.install-deps == 'true' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1023e301730..c6c5d92ac47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1922,6 +1922,9 @@ jobs: - name: Capture node path run: | node_bin="$(dirname "$(node -p 'process.execPath')")" + if command -v cygpath >/dev/null 2>&1; then + node_bin="$(cygpath -u "$node_bin")" + fi echo "NODE_BIN=$node_bin" >> "$GITHUB_ENV" - name: Install dependencies