mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50625 Changelog: [internal] This fixes yarn install errors coming from repositories other than `react-native` where `--ignore-engines` isn't specified. This was caused by `markdownlint-rule-relative-links` requiring Node.js >= v22 when we're using v20 in most cases. Fixes https://github.com/react-native-community/docker-android/actions/runs/14380730414/job/40323632337?pr=234 Reviewed By: cortinico Differential Revision: D72789007 fbshipit-source-id: 2c0b161af8be8d37bf57a7ea9cc22023434d4cb2
21 lines
615 B
YAML
21 lines
615 B
YAML
name: yarn-install
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Install dependencies
|
|
shell: bash
|
|
run: |
|
|
MAX_ATTEMPTS=2
|
|
ATTEMPT=0
|
|
WAIT_TIME=20
|
|
while [ $ATTEMPT -lt $MAX_ATTEMPTS ]; do
|
|
yarn install --non-interactive --frozen-lockfile && break
|
|
echo "yarn install failed. Retrying in $WAIT_TIME seconds..."
|
|
sleep $WAIT_TIME
|
|
ATTEMPT=$((ATTEMPT + 1))
|
|
done
|
|
if [ $ATTEMPT -eq $MAX_ATTEMPTS ]; then
|
|
echo "All attempts to invoke yarn install failed - Aborting the workflow"
|
|
exit 1
|
|
fi
|