Skip to content
This repository was archived by the owner on Apr 7, 2024. It is now read-only.

Commit 7195088

Browse files
authored
Create workflows and auto release (#77)
* Some improvements * Finish tools improvements * Add semantic-release configuration * Add workflows * Fix yarn ci command * Add react-native-builder-bob * v0.0.3 * Fix some issues * chore: test commitizen hook * feat: finish semantic-release setup * chore: add GitHub actions names
1 parent 15c61f3 commit 7195088

File tree

19 files changed

+3404
-313
lines changed

19 files changed

+3404
-313
lines changed

.bundle/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
BUNDLE_PATH: "vendor/bundle"
2-
BUNDLE_FORCE_RUBY_PLATFORM: 1
2+
BUNDLE_FORCE_RUBY_PLATFORM: 1

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ babel.config.cjs.js
33
babel.config.esm.js
44
metro.config.js
55
tailwind.config.js
6+
jest.config.js
7+
jest.setup.js
68
bob.config.js
79
index.js
810

.github/pull_request_template.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Description
2+
3+
Describe what was changed in this pull request
4+
5+
## Example images/recordings
6+
7+
Include example images/recordings if the new feature introduces some visual changes
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 'Check PR Title'
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
check-pr-title:
12+
name: 🔡 Check PR Title
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: amannn/action-semantic-pull-request@25e3275e19cd5b3577a99478084255065002897c
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
with:
19+
requireScope: true

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
release:
8+
name: 🚀 Release
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
packages: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 18
19+
- run: yarn install --frozen-lockfile
20+
- run: yarn build
21+
- run: yarn semantic-release
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
name: 🛠️ Test
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
- run: yarn install --frozen-lockfile
21+
- run: yarn test

.husky/prepare-commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
exec < /dev/tty && npx cz --hook || true

.releaserc.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module.exports = {
2+
branches: ['main'],
3+
plugins: [
4+
// Analyzes commit messages and
5+
// determines the version
6+
'@semantic-release/commit-analyzer',
7+
// Builds release notes from commit messages
8+
'@semantic-release/release-notes-generator',
9+
// Updates the version
10+
'@semantic-release/npm',
11+
[
12+
// Commits, tags, and pushes
13+
'@semantic-release/git',
14+
{
15+
assets: [
16+
'ios/$PROJECTNAME*/Info.plist',
17+
'ios/$PROJECTNAME.xcodeproj/project.pbxproj',
18+
'android/app/build.gradle',
19+
'package.json'
20+
],
21+
message:
22+
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
23+
}
24+
],
25+
// Creates the release on GitHub
26+
// and posts release notes
27+
'@semantic-release/github'
28+
]
29+
};

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# React Native Smart Graph
2+
3+
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* This file is the entry point for the tester app using the library.
2+
* This file is the main entry point for the local development server.
33
*
4-
* It is used to test if everything works properly.
4+
* It is used to test the library.
55
*/
66
import { AppRegistry } from 'react-native';
77
import App from '@/examples/Development';

0 commit comments

Comments
 (0)