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();