Skip to content

Commit 2e14564

Browse files
authored
update and simplify new quick deployment workflow (#2185)
1 parent 59da658 commit 2e14564

File tree

2 files changed

+10
-20
lines changed

2 files changed

+10
-20
lines changed

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

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,25 @@ 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
3725
- name: Use Bun
3826
uses: oven-sh/setup-bun@v2
3927
- name: Deploy
28+
if: ${{ steps.filter.outputs.only_data_changed == 'true' }}
4029
shell: bash
4130
run: bunx vercel --force --token "$VERCEL_TOKEN" --prod --local-config /vercel-quick.json
4231
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)