mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a889e1d083
Summary: I noticed on discord that the nightlies build are failing. I saw that it is due to node mismatch. https://github.com/facebook/react-native/actions/runs/15526730404/job/43707812613 ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [GENERAL][FIXED] Add Setup node on Nightly pipelines Pull Request resolved: https://github.com/facebook/react-native/pull/51901 Test Plan: I would rely on CI here. Tested on my fork . Without my change:- https://github.com/riteshshukla04/react-native/actions/runs/15538071698/job/43741907499 With My change :- https://github.com/riteshshukla04/react-native/actions/runs/15538160788/job/43742194561 Reviewed By: cipolleschi Differential Revision: D76270096 Pulled By: cortinico fbshipit-source-id: 666c2cc22e243927eb61b77cfe802222835718b3
35 lines
1018 B
YAML
35 lines
1018 B
YAML
# This jobs runs every day 2 hours after the nightly job and its purpose is to report
|
|
# a failure in case the nightly failed to be published. We are going to hook this to an internal automation.
|
|
name: Check Nightlies
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
# nightly build @ 4:15 AM UTC
|
|
schedule:
|
|
- cron: '15 4 * * *'
|
|
|
|
jobs:
|
|
check-nightly:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'facebook/react-native'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Check nightly
|
|
run: |
|
|
TODAY=$(date "+%Y%m%d")
|
|
echo "Checking nightly for $TODAY"
|
|
NIGHTLY="$(npm view react-native | grep $TODAY)"
|
|
if [[ -z $NIGHTLY ]]; then
|
|
echo 'Nightly job failed.'
|
|
exit 1
|
|
else
|
|
echo 'Nightly Worked, All Good!'
|
|
fi
|
|
|
|
test-libraries:
|
|
uses: ./.github/workflows/test-libraries-on-nightlies.yml
|
|
needs: check-nightly
|
|
secrets:
|
|
discord_webhook_url: ${{ secrets.NIGHTLY_DISCORD_WEBHOOK }}
|