mirror of
https://github.com/react/react-native.git
synced 2026-10-02 18:09:53 +08:00
Summary: In my prs, Im seeing the validate-dotslash-artifacts job fail with the error: ``` error react-native@1000.0.0: The engine "node" is incompatible with this module. Expected version ">= 22.11.0". Got "20.19.6" error Found incompatible module. ``` This change should fix the job by setting up a compatible version of Node ## Changelog: [Internal] - Pull Request resolved: https://github.com/facebook/react-native/pull/55049 Test Plan: GHA Reviewed By: cortinico Differential Revision: D90168396 Pulled By: cipolleschi fbshipit-source-id: 8d81f37a62ca13d5e868869b488eec4ea36d17c7
52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
name: Validate DotSlash Artifacts
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published]
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- packages/debugger-shell/bin/react-native-devtools
|
|
- "scripts/releases/**"
|
|
- package.json
|
|
- yarn.lock
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- packages/debugger-shell/bin/react-native-devtools
|
|
- "scripts/releases/**"
|
|
- package.json
|
|
- yarn.lock
|
|
# Same time as the nightly build: 2:15 AM UTC
|
|
schedule:
|
|
- cron: "15 2 * * *"
|
|
|
|
jobs:
|
|
validate-dotslash-artifacts:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'facebook/react-native'
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
fetch-tags: true
|
|
- name: Setup node.js
|
|
uses: ./.github/actions/setup-node
|
|
- name: Install dependencies
|
|
uses: ./.github/actions/yarn-install
|
|
- name: Configure Git
|
|
shell: bash
|
|
run: |
|
|
git config --local user.email "bot@reactnative.dev"
|
|
git config --local user.name "React Native Bot"
|
|
- name: Validate DotSlash artifacts
|
|
uses: actions/github-script@v8
|
|
with:
|
|
script: |
|
|
const {validateDotSlashArtifacts} = require('./scripts/releases/validate-dotslash-artifacts.js');
|
|
await validateDotSlashArtifacts();
|