Procházet zdrojové kódy

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

Luke Parker před 1 měsícem
rodič
revize
4d7cbdcbef
1 změnil soubory, kde provedl 9 přidání a 1 odebrání
  1. 9 1
      .github/actions/setup-bun/action.yml

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

@@ -41,5 +41,13 @@ runs:
       shell: bash
       shell: bash
 
 
     - name: Install dependencies
     - 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
       shell: bash