Skip to content

fix(ci): stop storybook oversight workflows failing with "No jobs wer… #19

fix(ci): stop storybook oversight workflows failing with "No jobs wer…

fix(ci): stop storybook oversight workflows failing with "No jobs wer… #19

name: React Native Storybook Oversight

Check failure on line 1 in .github/workflows/react-native-storybook-oversight.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/react-native-storybook-oversight.yml

Invalid workflow file

(Line: 54, Col: 9): Unexpected value 'working-directory'
on:
pull_request:
types: [opened, synchronize, reopened]
push:
permissions:
contents: read
pull-requests: read
jobs:
checks:
name: Storybook Oversight Lint
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: audit
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 20
- name: Check for react-native changes
id: filter
uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
with:
filters: |
react-native:
- 'packages/react-native/**'
- if: steps.filter.outputs.react-native == 'true'
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
with:
version: 11.8.0
- if: steps.filter.outputs.react-native == 'true'
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- if: steps.filter.outputs.react-native == 'true'
run: pnpm install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GLOBAL_READ_TOKEN }}
- if: steps.filter.outputs.react-native == 'true'
run: pnpm build:storybook:react-native
env:
NODE_OPTIONS: '--max_old_space_size=4096'
- if: steps.filter.outputs.react-native == 'true'
uses: rachelslurs/oversight-lint-action@v1
working-directory: ./packages/react-native