Skip to content

Commit 8f10f21

Browse files
ci(apps): 💚 add actions, renovate and kodiak (#38)
* docs: add @Karthik-B-06 as a contributor * docs: add @navin-moorthy as a contributor * ci(apps): 💚 add actions, renovate and kodiak
1 parent b32ee7d commit 8f10f21

File tree

10 files changed

+265
-20
lines changed

10 files changed

+265
-20
lines changed

.all-contributorsrc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"projectName": "react-native-tailwind",
3+
"projectOwner": "adaptui",
4+
"repoType": "github",
5+
"repoHost": "https://github.com",
6+
"files": [
7+
"README.md"
8+
],
9+
"imageSize": 100,
10+
"commit": true,
11+
"commitConvention": "angular",
12+
"contributors": [
13+
{
14+
"login": "Karthik-B-06",
15+
"name": "Karthik",
16+
"avatar_url": "https://avatars.githubusercontent.com/u/35562287?v=4",
17+
"profile": "https://peerlist.io/_iam_karthik",
18+
"contributions": [
19+
"code"
20+
]
21+
},
22+
{
23+
"login": "navin-moorthy",
24+
"name": "Navin Moorthy",
25+
"avatar_url": "https://avatars.githubusercontent.com/u/39694575?v=4",
26+
"profile": "https://navinmoorthy.me/",
27+
"contributions": [
28+
"code"
29+
]
30+
}
31+
],
32+
"contributorsPerLine": 7
33+
}

.github/CODEOWNERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Learn how to add code owners here:
2+
3+
# https://help.github.com/en/articles/about-code-owners
4+
5+
- @Karthik-B-06
6+
- @navin-moorthy

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: "14.x"
17+
18+
- name: Get yarn cache directory path
19+
id: yarn-cache-dir-path
20+
run: echo "::set-output name=dir::$(yarn cache dir)"
21+
22+
- uses: actions/cache@v3
23+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
24+
with:
25+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
26+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
27+
restore-keys: |
28+
${{ runner.os }}-yarn-
29+
30+
- name: Install Dependencies
31+
run: yarn
32+
33+
- name: Build
34+
run: yarn build

.github/workflows/lint.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Lint
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: "14.x"
17+
18+
- name: Get yarn cache directory path
19+
id: yarn-cache-dir-path
20+
run: echo "::set-output name=dir::$(yarn cache dir)"
21+
22+
- uses: actions/cache@v3
23+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
24+
with:
25+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
26+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
27+
restore-keys: |
28+
${{ runner.os }}-yarn-
29+
30+
- name: Install Dependencies
31+
run: yarn
32+
33+
- name: Lint
34+
run: yarn lint

.kodiak.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# .kodiak.toml
2+
version = 1
3+
4+
[merge]
5+
automerge_label = "ready 🎉"
6+
require_automerge_label = false
7+
method = "squash"
8+
delete_branch_on_merge = true
9+
optimistic_updates = true
10+
prioritize_ready_to_merge = true
11+
notify_on_conflict = false
12+
13+
[merge.message]
14+
title = "pull_request_title"
15+
body = "github_default"
16+
include_pr_number = true
17+
body_type = "markdown"
18+
strip_html_comments = true

LICENSE

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
MIT License
22

3-
Copyright (c) 2021 Navin Moorthy
3+
Copyright (c) 2022 Timeless
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
1111

1212
The above copyright notice and this permission notice shall be included in all
1313
copies or substantial portions of the Software.
1414

1515
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,27 @@ repository and the development workflow.
2424
## License
2525

2626
MIT
27+
28+
## Contributors ✨
29+
30+
Thanks goes to these wonderful people
31+
([emoji key](https://allcontributors.org/docs/en/emoji-key)):
32+
33+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
34+
<!-- prettier-ignore-start -->
35+
<!-- markdownlint-disable -->
36+
<table>
37+
<tr>
38+
<td align="center"><a href="https://peerlist.io/_iam_karthik"><img src="https://avatars.githubusercontent.com/u/35562287?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Karthik</b></sub></a><br /><a href="https://github.com/adaptui/react-native-tailwind/commits?author=Karthik-B-06" title="Code">💻</a></td>
39+
<td align="center"><a href="https://navinmoorthy.me/"><img src="https://avatars.githubusercontent.com/u/39694575?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Navin Moorthy</b></sub></a><br /><a href="https://github.com/adaptui/react-native-tailwind/commits?author=navin-moorthy" title="Code">💻</a></td>
40+
</tr>
41+
</table>
42+
43+
<!-- markdownlint-restore -->
44+
<!-- prettier-ignore-end -->
45+
46+
<!-- ALL-CONTRIBUTORS-LIST:END -->
47+
48+
This project follows the
49+
[all-contributors](https://github.com/all-contributors/all-contributors)
50+
specification. Contributions of any kind welcome!

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@
8484
"@react-native-aria/radio": "^0.2.5",
8585
"@react-stately/toggle": "^3.3.0",
8686
"lodash": "^4.17.21",
87-
"react-native-popper": "^0.3.2",
8887
"react-native-gesture-handler": "2.1.0",
88+
"react-native-popper": "^0.3.2",
8989
"react-native-reanimated": "2.3.1",
9090
"react-native-svg": "^12.1.1",
9191
"tailwind-merge": "^1.2.1",
@@ -102,6 +102,7 @@
102102
"@types/jest": "^28.1.1",
103103
"@types/react": "17.0.30",
104104
"@types/react-native": "0.64.24",
105+
"all-contributors-cli": "^6.20.0",
105106
"commitlint": "^17.0.2",
106107
"eslint": "^8.17.0",
107108
"eslint-plugin-import": "^2.26.0",

renovate.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"extends": ["config:base"],
3+
"commitMessageAction": "⬆️ update",
4+
"ignoreDeps": [
5+
"react-native-gesture-handler",
6+
"react-native-reanimated",
7+
"react-native-svg",
8+
"@types/react",
9+
"@types/react-native",
10+
"react",
11+
"react-native"
12+
],
13+
"packageRules": [
14+
{
15+
"matchDepTypes": ["devDependencies"],
16+
"matchUpdateTypes": ["patch", "minor"],
17+
"groupName": "dev dependencies (minor)"
18+
},
19+
{
20+
"matchDepTypes": ["devDependencies"],
21+
"matchUpdateTypes": ["major"],
22+
"groupName": "dev dependencies (major)"
23+
},
24+
{
25+
"matchDepTypes": ["dependencies"],
26+
"matchUpdateTypes": ["patch", "minor"],
27+
"groupName": "prod dependencies (minor)"
28+
}
29+
]
30+
}

0 commit comments

Comments
 (0)