Skip to content

Commit 07e3ef3

Browse files
authored
Merge branch 'main' into main
2 parents a1515fd + ff0df54 commit 07e3ef3

File tree

285 files changed

+41454
-39181
lines changed

Some content is hidden

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

285 files changed

+41454
-39181
lines changed

.circleci/config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ jobs:
2929
- run:
3030
name: Install dependencies
3131
command: |
32-
yarn install --cwd example --frozen-lockfile
33-
yarn install --cwd docs --frozen-lockfile
34-
yarn install --frozen-lockfile
32+
sudo corepack enable
33+
yarn --cwd example --immutable
34+
yarn --cwd docs --immutable
35+
yarn --immutable
3536
- save_cache:
3637
key: dependencies-{{ checksum "package.json" }}
3738
paths:

.github/workflows/check-repro.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/publish-each-pr.yml

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,53 @@
11
name: Expo Preview
22
on: [pull_request]
33

4+
permissions:
5+
contents: read
6+
pull-requests: write
7+
48
jobs:
59
publish:
610
name: Install and publish
711
runs-on: ubuntu-latest
812
if: github.event.pull_request.head.repo.full_name == 'callstack/react-native-paper'
913
steps:
1014
- name: Checkout
11-
uses: actions/checkout@v1
15+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
1216

1317
- name: Setup Node.js
14-
uses: actions/setup-node@v1
18+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
1519
with:
16-
node-version: 16.x
20+
node-version-file: .nvmrc
1721

1822
- name: Setup Expo
19-
uses: expo/expo-github-action@v7
23+
uses: expo/expo-github-action@d300b960e9f91a8c59b2aaca92e89ad70b0785ac # v7
2024
with:
2125
eas-version: latest
2226
token: ${{ secrets.EXPO_TOKEN }}
2327

24-
- name: Get yarn cache
28+
- name: Restore dependencies
2529
id: yarn-cache
26-
run: echo "::set-output name=dir::$(yarn cache dir)"
27-
28-
- name: Check yarn cache
29-
uses: actions/cache@v1
30+
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4
3031
with:
31-
path: ${{ steps.yarn-cache.outputs.dir }}
32-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
32+
path: '**/node_modules'
33+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
3334
restore-keys: |
35+
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
3436
${{ runner.os }}-yarn-
3537
3638
- name: Install dependencies
37-
run: yarn
39+
if: steps.yarn-cache.outputs.cache-hit != 'true'
40+
run: |
41+
sudo corepack enable
42+
yarn --cwd example --immutable
43+
yarn --immutable
44+
45+
- name: Cache dependencies
46+
if: steps.yarn-cache.outputs.cache-hit != 'true'
47+
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4
48+
with:
49+
path: '**/node_modules'
50+
key: ${{ steps.yarn-cache.outputs.cache-primary-key }}
3851

3952
- name: Publish Expo app
4053
working-directory: ./example
@@ -46,7 +59,7 @@ jobs:
4659
run: echo "EXPO_CONFIG=$(npx expo config --json)" >> $GITHUB_OUTPUT
4760

4861
- name: Comment on PR
49-
uses: actions/github-script@v3
62+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
5063
with:
5164
github-token: ${{ secrets.GITHUB_TOKEN }}
5265
script: |
@@ -62,7 +75,7 @@ jobs:
6275
<a href="${url}"><img src="https://qr.expo.dev/eas-update?appScheme=exp&projectId=${projectId}&channel=${channel}&runtimeVersion=exposdk:${sdkVersion}&host=u.expo.dev" height="200px" width="200px"></a>
6376
`;
6477
65-
const comments = await github.issues.listComments({
78+
const comments = await github.rest.issues.listComments({
6679
issue_number: context.issue.number,
6780
owner: context.repo.owner,
6881
repo: context.repo.repo,
@@ -72,7 +85,7 @@ jobs:
7285
return;
7386
}
7487
75-
github.issues.createComment({
88+
github.rest.issues.createComment({
7689
issue_number: context.issue.number,
7790
owner: context.repo.owner,
7891
repo: context.repo.repo,

.github/workflows/semantic-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: "Semantic Pull Request"
1+
name: Semantic Pull Request
22
on: [pull_request]
33

44
jobs:
55
main:
66
name: Validate PR title
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: amannn/action-semantic-pull-request@v4.5.0
9+
- uses: amannn/action-semantic-pull-request@91682d013dea3ff257520b9b68c9cb93ced4fe9b # v4.5.0
1010
env:
1111
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1212
with:
13-
validateSingleCommit: true
13+
validateSingleCommit: true

.github/workflows/stale.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ on:
44
schedule:
55
- cron: '30 1 * * *'
66

7+
permissions:
8+
contents: read
9+
issues: write
10+
pull-requests: write
11+
712
jobs:
813
stale:
914
runs-on: ubuntu-latest
1015
steps:
11-
- uses: actions/stale@v3
16+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9
1217
with:
1318
repo-token: ${{ secrets.GITHUB_TOKEN }}
1419
days-before-stale: 30

.github/workflows/triage.yaml

Lines changed: 48 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,63 @@ on:
33
issues:
44
types: [labeled]
55

6+
permissions:
7+
contents: read
8+
issues: write
9+
610
jobs:
711
needs-more-info:
812
runs-on: ubuntu-latest
913
if: github.event.label.name == 'needs more info'
1014
steps:
11-
- uses: actions/checkout@master
12-
- uses: actions/github@v1.0.0
13-
env:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
16+
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
1517
with:
16-
args: comment "Hey! Thanks for opening the issue. Can you provide more information about the issue? Please fill the issue template when opening the issue without deleting any section. We need all the information we can, to be able to help. Make sure to at least provide - Current behaviour, Expected behaviour, A way to reproduce the issue with minimal code (link to [snack.expo.dev](https://snack.expo.dev)) or a repo on GitHub, and the information about your environment (such as the platform of the device, versions of all the packages etc.)."
18+
github-token: ${{ secrets.GITHUB_TOKEN }}
19+
script: |
20+
const actor = context.actor;
21+
const { data: collaborators } = await github.rest.repos.listCollaborators({
22+
owner: context.repo.owner,
23+
repo: context.repo.repo,
24+
});
25+
26+
const isCollaborator = collaborators.some(collaborator => collaborator.login === actor);
27+
if (!isCollaborator) {
28+
console.log(`Actor ${actor} is not a collaborator, skipping workflow`);
29+
return;
30+
}
31+
32+
github.rest.issues.createComment({
33+
issue_number: context.issue.number,
34+
owner: context.repo.owner,
35+
repo: context.repo.repo,
36+
body: "Hey! Thanks for opening the issue. Can you provide more information about the issue? Please fill the issue template when opening the issue without deleting any section. We need all the information we can, to be able to help. Make sure to at least provide - Current behaviour, Expected behaviour, A way to reproduce the issue with minimal code (link to [snack.expo.dev](https://snack.expo.dev)) or a repo on GitHub, and the information about your environment (such as the platform of the device, versions of all the packages etc.)."
37+
})
1738
1839
needs-repro:
1940
runs-on: ubuntu-latest
2041
if: github.event.label.name == 'needs repro'
2142
steps:
22-
- uses: actions/checkout@master
23-
- uses: actions/github@v1.0.0
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
44+
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
2645
with:
27-
args: comment "Hey! Thanks for opening the issue. Can you provide a minimal repro which demonstrates the issue? Posting a snippet of your code in the issue is useful, but it's not usually straightforward to run. A repro will help us debug the issue faster. Please try to keep the repro as small as possible. The easiest way to provide a repro is on [snack.expo.dev](https://snack.expo.dev). If it's not possible to repro it on [snack.expo.dev](https://snack.expo.dev), then you can also provide the repro in a GitHub repository."
46+
github-token: ${{ secrets.GITHUB_TOKEN }}
47+
script: |
48+
const actor = context.actor;
49+
const { data: collaborators } = await github.rest.repos.listCollaborators({
50+
owner: context.repo.owner,
51+
repo: context.repo.repo,
52+
});
53+
54+
const isCollaborator = collaborators.some(collaborator => collaborator.login === actor);
55+
if (!isCollaborator) {
56+
console.log(`Actor ${actor} is not a collaborator, skipping workflow`);
57+
return;
58+
}
59+
60+
github.rest.issues.createComment({
61+
issue_number: context.issue.number,
62+
owner: context.repo.owner,
63+
repo: context.repo.repo,
64+
body: "Hey! Thanks for opening the issue. Can you provide a minimal repro which demonstrates the issue? Posting a snippet of your code in the issue is useful, but it's not usually straightforward to run. A repro will help us debug the issue faster. Please try to keep the repro as small as possible. The easiest way to provide a repro is on [snack.expo.dev](https://snack.expo.dev). If it's not possible to repro it on [snack.expo.dev](https://snack.expo.dev), then you can also provide the repro in a GitHub repository."
65+
})

.github/workflows/updates.yml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,43 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
1414

1515
- name: Setup Node.js
16-
uses: actions/setup-node@v2
16+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
1717
with:
18-
node-version: 16.x
18+
node-version-file: .nvmrc
1919

2020
- name: Setup Expo
21-
uses: expo/expo-github-action@v7
21+
uses: expo/expo-github-action@d300b960e9f91a8c59b2aaca92e89ad70b0785ac # v7
2222
with:
2323
expo-version: latest
2424
eas-version: latest
2525
token: ${{ secrets.EXPO_TOKEN }}
2626

27-
- name: Get yarn cache
28-
id: yarn-cache-path
29-
run: echo "::set-output name=dir::$(yarn cache dir)"
30-
31-
- uses: actions/cache@v2
27+
- name: Restore dependencies
28+
id: yarn-cache
29+
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4
3230
with:
33-
path: ${{ steps.yarn-cache-path.outputs.dir }}
34-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
35-
restore-keys: ${{ runner.os }}-yarn-
31+
path: '**/node_modules'
32+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
33+
restore-keys: |
34+
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
35+
${{ runner.os }}-yarn-
3636
3737
- name: Install dependencies
38-
run: yarn
38+
if: steps.yarn-cache.outputs.cache-hit != 'true'
39+
run: |
40+
sudo corepack enable
41+
yarn --cwd example --immutable
42+
yarn --immutable
43+
44+
- name: Cache dependencies
45+
if: steps.yarn-cache.outputs.cache-hit != 'true'
46+
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4
47+
with:
48+
path: '**/node_modules'
49+
key: ${{ steps.yarn-cache.outputs.cache-primary-key }}
3950

4051
- name: Publish Expo app update
4152
working-directory: ./example

.github/workflows/versions.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ on:
33
issues:
44
types: [opened, edited]
55

6+
permissions:
7+
contents: read
8+
issues: write
9+
610
jobs:
711
check-versions:
812
if: ${{ github.event.label.name == 'bug' }}
913
runs-on: ubuntu-latest
1014
steps:
11-
- uses: react-navigation/check-versions-action@v1.0.0
15+
- uses: react-navigation/check-versions-action@deac0a153b834fdda425028be69b2cf786dacc31 # v1.1.0
1216
with:
1317
github-token: ${{ secrets.GITHUB_TOKEN }}
1418
required-packages: |
15-
react-native
1619
react-native-paper
17-
react-native-vector-icons
1820
optional-packages: |
19-
expo
20-
npm
21-
yarn
21+
@react-native-vector-icons/material-design-icons

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,11 @@ CHANGELOG.md
6464
lib/
6565

6666
.expo
67+
68+
# Yarn
69+
.yarn/*
70+
!.yarn/patches
71+
!.yarn/plugins
72+
!.yarn/releases
73+
!.yarn/sdks
74+
!.yarn/versions

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22.15.0

0 commit comments

Comments
 (0)