Skip to content

Commit e880868

Browse files
committed
Resolve merge conflict in react-native-libraries.json
2 parents 2a4999d + 2da0f2f commit e880868

251 files changed

Lines changed: 121274 additions & 42743 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
GITHUB_TOKEN=your-token
2-
ANALYZE=false
2+
3+
USE_LOCAL_DATA_FILE=true
4+
ANALYZE=false

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=lf

.github/pull_request_template.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
1-
<!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes.
2-
Please follow the template so that the reviewers can easily understand what the code changes affect -->
1+
<!-- Thanks for submitting a pull request! 🙌 We really appreciate your time and effort in contributing to this project.
2+
Please follow the template below to help reviewers understand your changes clearly. -->
33

44
# 📝 Why & how
5-
<!-- Does this PR add a feature? Address a bug? Add a new library? Document your changes here! -->
65

6+
<!-- Does this PR add a feature? Address a bug? Add a new library? Document your changes here! -->
77

88
# ✅ Checklist
9-
<!-- Check completed item, when applicable, via [X], remove unneeded tasks from the list -->
109

11-
<!-- If you added a new library or updated the existing one -->
10+
<!-- Mark completed items with [x]. Remove tasks that don't apply. -->
11+
12+
<!-- If you added a new library or updated the existing one. -->
13+
1214
- [ ] Added library to **`react-native-libraries.json`**
1315
- [ ] Updated library in **`react-native-libraries.json`**
1416

1517
<!-- If you added a feature or fixed a bug -->
16-
- [ ] Documented in this PR how to use the feature or replicate the bug.
17-
- [ ] Documented in this PR how you fixed an issue or created the feature.
18+
19+
- [ ] Documented how you found or replicated the issue.
20+
- [ ] Explained how you fixed the issue or built the feature.
21+
- [ ] Described how to use or verify the change.
22+
23+
<!-- Thanks again for helping improve the project! 🙏 -->
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
1-
name: "[CODE] Deploy preview website"
1+
name: '[CODE] Deploy preview website'
22

33
on:
44
pull_request:
55
types: [labeled, synchronize]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
build:
912
if: ${{ github.event.label.name == 'deploy' }}
1013
runs-on: ubuntu-latest
1114

1215
steps:
13-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6
1417
- name: Use Bun
1518
uses: oven-sh/setup-bun@v2
1619
- name: Deploy
1720
shell: bash
1821
run: bunx vercel --force --token "$VERCEL_TOKEN"
1922
env:
2023
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
21-
# https://spectrum.chat/zeit/now/solved-project-linking-and-ci-cd-pipelines~5e6eb62a-9d56-47ac-9e32-0d973a523787
2224
VERCEL_ORG_ID: 'team_IsLEAhLb9cZj6y1Bud9XYmeK'
2325
VERCEL_PROJECT_ID: 'QmecQ8hTu4DUHv6js5U8L9pJ9vp54mg1bmRLWaS5RZCyt4'
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: '[CODE] Deploy production website (new data only)'
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- react-native-libraries.json
8+
9+
jobs:
10+
build:
11+
permissions:
12+
contents: read
13+
runs-on: ubuntu-latest
14+
environment:
15+
name: production
16+
url: https://reactnative.directory
17+
steps:
18+
- uses: actions/checkout@v6
19+
- name: Detect changed paths
20+
uses: dorny/paths-filter@v3
21+
id: filter
22+
with:
23+
predicate-quantifier: 'every'
24+
filters: |
25+
only_data_changed:
26+
- react-native-libraries.json
27+
- name: Use Bun
28+
uses: oven-sh/setup-bun@v2
29+
- name: Deploy
30+
if: ${{ steps.filter.outputs.only_data_changed == 'true' }}
31+
shell: bash
32+
run: bunx vercel --force --token "$VERCEL_TOKEN" --prod --local-config ./vercel-quick.json
33+
env:
34+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
35+
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
36+
VERCEL_ORG_ID: 'team_IsLEAhLb9cZj6y1Bud9XYmeK'
37+
VERCEL_PROJECT_ID: 'QmecQ8hTu4DUHv6js5U8L9pJ9vp54mg1bmRLWaS5RZCyt4'
Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
name: "[CODE] Deploy production website"
1+
name: '[CODE] Deploy production website'
2+
3+
permissions:
4+
contents: read
25

36
on:
47
push:
58
branches: [main]
69
paths-ignore:
10+
- .vscode
11+
- '**.md'
12+
- '**.yml'
713
- react-native-libraries.json
8-
schedule:
9-
# Run every 3 hours - https://crontab.guru/#0_*/3_*_*_*
10-
- cron: '0 */3 * * *'
14+
- react-native-libraries.schema.json
1115

1216
jobs:
1317
build:
@@ -16,15 +20,14 @@ jobs:
1620
name: production
1721
url: https://reactnative.directory
1822
steps:
19-
- uses: actions/checkout@v4
20-
- name: Use Bun
21-
uses: oven-sh/setup-bun@v2
22-
- name: Deploy
23-
shell: bash
24-
run: bunx vercel --force --token "$VERCEL_TOKEN" --prod
25-
env:
26-
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
27-
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
28-
# https://spectrum.chat/zeit/now/solved-project-linking-and-ci-cd-pipelines~5e6eb62a-9d56-47ac-9e32-0d973a523787
29-
VERCEL_ORG_ID: 'team_IsLEAhLb9cZj6y1Bud9XYmeK'
30-
VERCEL_PROJECT_ID: 'QmecQ8hTu4DUHv6js5U8L9pJ9vp54mg1bmRLWaS5RZCyt4'
23+
- uses: actions/checkout@v6
24+
- name: Use Bun
25+
uses: oven-sh/setup-bun@v2
26+
- name: Deploy
27+
shell: bash
28+
run: bunx vercel --force --token "$VERCEL_TOKEN" --prod
29+
env:
30+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
31+
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
32+
VERCEL_ORG_ID: 'team_IsLEAhLb9cZj6y1Bud9XYmeK'
33+
VERCEL_PROJECT_ID: 'QmecQ8hTu4DUHv6js5U8L9pJ9vp54mg1bmRLWaS5RZCyt4'
Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
name: "[CODE] Lint and test"
1+
name: '[CODE] Lint and test'
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
26

37
on:
48
push:
@@ -11,14 +15,19 @@ jobs:
1115
test:
1216
runs-on: ubuntu-latest
1317
steps:
14-
- uses: actions/checkout@v4
15-
- name: Use Bun
16-
uses: oven-sh/setup-bun@v2
17-
- name: Install dependencies
18-
run: bun install
19-
- name: TSC
20-
run: bun tsc
21-
- name: Lint
22-
run: bun lint
23-
- name: Build Next app
24-
run: bun next build --webpack
18+
- uses: actions/checkout@v6
19+
- name: Use Bun
20+
uses: oven-sh/setup-bun@v2
21+
- name: Install dependencies
22+
run: bun install
23+
- if: ${{ github.event_name == 'pull_request' }}
24+
name: List lock changes
25+
uses: Simek/bun-lock-changes@main
26+
with:
27+
token: ${{ secrets.GITHUB_TOKEN }}
28+
- name: TSC
29+
run: bun tsc
30+
- name: Lint
31+
run: bun lint
32+
- name: Build Next app
33+
run: bun next build --webpack
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: '[CODE] Refresh data and deploy production website'
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
schedule:
8+
# Run every 2 hours - https://crontab.guru/#0_*/2_*_*_*
9+
- cron: '0 */2 * * *'
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
environment:
16+
name: production
17+
url: https://reactnative.directory
18+
steps:
19+
- uses: actions/checkout@v6
20+
- name: Use Bun
21+
uses: oven-sh/setup-bun@v2
22+
- name: Deploy
23+
shell: bash
24+
run: bunx vercel --force --token "$VERCEL_TOKEN" --prod --local-config ./vercel-with-data-refresh.json
25+
env:
26+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
27+
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
28+
VERCEL_ORG_ID: 'team_IsLEAhLb9cZj6y1Bud9XYmeK'
29+
VERCEL_PROJECT_ID: 'QmecQ8hTu4DUHv6js5U8L9pJ9vp54mg1bmRLWaS5RZCyt4'
Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "[DATA] Test and Validate"
1+
name: '[DATA] Test and Validate'
22

33
on:
44
push:
@@ -9,18 +9,22 @@ on:
99

1010
jobs:
1111
test:
12+
permissions:
13+
contents: read
1214
runs-on: ubuntu-latest
1315
steps:
14-
- uses: actions/checkout@v4
15-
- name: Use Bun
16-
uses: oven-sh/setup-bun@v2
17-
- name: Install dependencies
18-
run: bun install
19-
- name: Validate react-native-libraries.json
20-
run: bun data:validate
21-
- name: Test react-native-libraries.json
22-
run: bun data:test
23-
- name: Check new entries in react-native-libraries.json
24-
run: bun ci:validate
25-
env:
26-
CI_CHECKS_TOKEN: ${{ github.token }}
16+
- uses: actions/checkout@v6
17+
- name: Use Bun
18+
uses: oven-sh/setup-bun@v2
19+
- name: Install dependencies
20+
run: bun install
21+
- name: Validate react-native-libraries.json
22+
run: bun data:validate
23+
- name: Test react-native-libraries.json
24+
run: bun data:test
25+
- name: Check new entries in react-native-libraries.json
26+
run: bun ci:validate
27+
env:
28+
CI_CHECKS_TOKEN: ${{ github.token }}
29+
- name: Lint data
30+
run: bun oxfmt react-native-libraries.json --check
Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1-
name: "[VERCEL] Cleanup data blobs"
1+
name: '[VERCEL] Cleanup data blobs'
22

33
on:
44
push:
55
branches: [main]
66
schedule:
7-
# Run once a week on Thursday at midnight - https://crontab.guru/#0_0_*_*_2
8-
- cron: '0 0 * * 2'
7+
# Run three time a week on Tuesday, Thursday, and Saturday at midnight - https://crontab.guru/#0 0 * * 2,4,6
8+
- cron: '0 0 * * 2,4,6'
9+
10+
permissions:
11+
contents: read
912

1013
jobs:
1114
build:
1215
runs-on: ubuntu-latest
1316
steps:
14-
- uses: actions/checkout@v4
15-
- name: Use Bun
16-
uses: oven-sh/setup-bun@v2
17-
- name: Install dependencies
18-
run: bun install
19-
- name: Cleanup data blobs
20-
run: bun ci:cleanup-blobs
21-
env:
22-
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
17+
- uses: actions/checkout@v6
18+
- name: Use Bun
19+
uses: oven-sh/setup-bun@v2
20+
- name: Install dependencies
21+
run: bun install
22+
- name: Cleanup data blobs
23+
run: bun ci:cleanup-blobs
24+
env:
25+
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}

0 commit comments

Comments
 (0)