Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 24 additions & 8 deletions .github/workflows/react-native-storybook-oversight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: React Native Storybook Oversight
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'packages/react-native/**'
push:

permissions:
contents: read
pull-requests: read

jobs:
checks:
Expand All @@ -19,20 +19,36 @@ jobs:
with:
egress-policy: audit

- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- 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
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.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'
- run: pnpm install --frozen-lockfile
- if: steps.filter.outputs.react-native == 'true'
run: pnpm install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GLOBAL_READ_TOKEN }}
- run: pnpm build:storybook:react-native
- if: steps.filter.outputs.react-native == 'true'
run: pnpm build:storybook:react-native
env:
NODE_OPTIONS: '--max_old_space_size=4096'
- uses: rachelslurs/oversight-lint-action@v1
- if: steps.filter.outputs.react-native == 'true'
uses: rachelslurs/oversight-lint-action@v1
working-directory: ./packages/react-native
32 changes: 24 additions & 8 deletions .github/workflows/react-storybook-oversight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: React Storybook Oversight
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'packages/react/**'
push:

permissions:
contents: read
pull-requests: read

jobs:
checks:
Expand All @@ -18,20 +18,36 @@ jobs:
with:
egress-policy: audit

- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 20

- name: Check for react changes
id: filter
uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
with:
filters: |
react:
- 'packages/react/**'

- if: steps.filter.outputs.react == 'true'
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
with:
version: 11.8.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- if: steps.filter.outputs.react == 'true'
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- if: steps.filter.outputs.react == 'true'
run: pnpm install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GLOBAL_READ_TOKEN }}
- run: pnpm build:storybook:react
- if: steps.filter.outputs.react == 'true'
run: pnpm build:storybook:react
env:
NODE_OPTIONS: '--max_old_space_size=4096'
- uses: rachelslurs/oversight-lint-action@v1
- if: steps.filter.outputs.react == 'true'
uses: rachelslurs/oversight-lint-action@v1
working-directory: ./packages/react
Loading