Skip to content

Commit 1dc786e

Browse files
committed
update and simplify new quick deployment workflow
1 parent 59da658 commit 1dc786e

2 files changed

Lines changed: 11 additions & 20 deletions

File tree

.github/workflows/code-deploy-producition-quick.yml

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,26 @@ on:
77
- react-native-libraries.json
88

99
jobs:
10-
detect_changes:
11-
runs-on: ubuntu-latest
12-
outputs:
13-
data_changed: ${{ steps.filter.outputs.data_changed }}
14-
other_changed: ${{ steps.filter.outputs.other_changed }}
15-
steps:
16-
- uses: actions/checkout@v6
17-
- id: filter
18-
name: Detect changed paths
19-
uses: dorny/paths-filter@v3
20-
with:
21-
filters: |
22-
data_changed:
23-
- 'react-native-libraries.json'
24-
other_changed:
25-
- '**'
26-
- '!react-native-libraries.json'
27-
2810
build:
29-
needs: detect_changes
30-
if: ${{ needs.detect_changes.outputs.data_changed == 'true' && needs.detect_changes.outputs.other_changed != 'true' }}
3111
runs-on: ubuntu-latest
3212
environment:
3313
name: production
3414
url: https://reactnative.directory
3515
steps:
3616
- uses: actions/checkout@v6
17+
- name: Detect changed paths
18+
uses: dorny/paths-filter@v3
19+
id: filter
20+
with:
21+
predicate-quantifier: 'every'
22+
filters: |
23+
only_data_changed:
24+
- 'react-native-libraries.json'
25+
- '!**'
3726
- name: Use Bun
3827
uses: oven-sh/setup-bun@v2
3928
- name: Deploy
29+
if: ${{ steps.filter.outputs.only_data_changed == 'true' }}
4030
shell: bash
4131
run: bunx vercel --force --token "$VERCEL_TOKEN" --prod --local-config /vercel-quick.json
4232
env:

.github/workflows/code-deploy-production.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
paths-ignore:
77
- .vscode
88
- '**.md'
9+
- '**.yml'
910
- react-native-libraries.json
1011
- react-native-libraries.schema.json
1112
schedule:

0 commit comments

Comments
 (0)