File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252 uses : flox/install-flox-action@v2.2.0
5353 - name : Yarn debug (iOS env)
5454 run : |
55- flox activate -d env/ios/latest -- bash -lc " echo PATH=$PATH && ls -l /Users/runner/.local/bin || true && which yarn && yarn --version && node -v && corepack --version"
55+ flox activate -d env/ios/latest -- bash -lc ' echo PATH=$PATH && ls -l /Users/runner/.local/bin || true && which yarn && yarn --version && node -v && corepack --version'
5656 - name : iOS E2E Tests
5757 run : |
5858 flox activate -d env/ios/latest -- bash -lc "yarn e2e:ios"
Original file line number Diff line number Diff line change 5757 uses : flox/install-flox-action@v2.2.0
5858 - name : Yarn debug (iOS env)
5959 run : |
60- flox activate -d env/ios/latest -- bash -lc " echo PATH=$PATH && ls -l /Users/runner/.local/bin || true && which yarn && yarn --version && node -v && corepack --version"
60+ flox activate -d env/ios/latest -- bash -lc ' echo PATH=$PATH && ls -l /Users/runner/.local/bin || true && which yarn && yarn --version && node -v && corepack --version'
6161 - name : iOS E2E Tests
6262 run : |
6363 flox activate -d env/ios/latest -- bash -lc "yarn e2e:ios"
Original file line number Diff line number Diff line change @@ -27,11 +27,17 @@ shfmt.pkg-path = "shfmt"
2727 fi
2828 "$path" "$@"
2929 }
30- # Ensure Yarn 4 shim wins over any host Yarn 1.x
30+ # Ensure Yarn 4 from the env wins over any host Yarn 1.x
3131 clean_path="$(printf '%s' "$PATH" | tr ':' '\n' | grep -v '/.yarn/bin' | paste -sd: -)"
3232 export COREPACK_HOME="$HOME/.local/share/corepack"
3333 mkdir -p "$HOME/.local/bin" "$COREPACK_HOME"
34- export PATH="$HOME/.local/bin:$COREPACK_HOME:$clean_path"
34+ # Prefer the env-provided yarn binary explicitly if present.
35+ if command -v yarn >/dev/null 2>&1; then
36+ yarn_dir="$(dirname "$(command -v yarn)")"
37+ export PATH="$yarn_dir:$HOME/.local/bin:$COREPACK_HOME:$clean_path"
38+ else
39+ export PATH="$HOME/.local/bin:$COREPACK_HOME:$clean_path"
40+ fi
3541 if command -v corepack >/dev/null 2>&1; then
3642 corepack enable --install-directory "$HOME/.local/bin" >/dev/null 2>&1 || true
3743 corepack prepare "yarn@4.12.0" --activate --install-directory "$HOME/.local/bin" >/dev/null 2>&1 || true
You can’t perform that action at this time.
0 commit comments