Browse Source

fix(ci): workaround by using hoisted Bun linker on Windows (#17751)

Luke Parker 1 month ago
parent
commit
4d7cbdcbef
1 changed files with 9 additions and 1 deletions
  1. 9 1
      .github/actions/setup-bun/action.yml

+ 9 - 1
.github/actions/setup-bun/action.yml

@@ -41,5 +41,13 @@ runs:
       shell: bash
 
     - name: Install dependencies
-      run: bun install
+      run: |
+        # Workaround for patched peer variants
+        # e.g. ./patches/ for standard-openapi
+        # https://github.com/oven-sh/bun/issues/28147
+        if [ "$RUNNER_OS" = "Windows" ]; then
+          bun install --linker hoisted
+        else
+          bun install
+        fi
       shell: bash