Skip to content

Commit a59a9eb

Browse files
authored
ci: add release through GitHub (#194)
1 parent 9c6f4fd commit a59a9eb

23 files changed

+2048
-1381
lines changed

.commitlintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "extends": ["@commitlint/config-conventional"] }

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
android/
2+
lib/
3+
node_modules/
4+
output/

.eslintrc.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"extends": ["@react-native-community", "prettier"],
3+
"rules": {
4+
"prettier/prettier": [
5+
"error",
6+
{
7+
"quoteProps": "consistent",
8+
"singleQuote": true,
9+
"tabWidth": 2,
10+
"trailingComma": "es5",
11+
"useTabs": false
12+
}
13+
]
14+
}
15+
}

.github/workflows/ci-build-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818
android-avd-ram-size: 1024M
1919
android-promise-timeout-milliseconds: 75_000L
2020
android-sdk-root: /Users/ely/Library/Android/sdk
21-
node-version: 12
21+
node-version: 14
2222

2323
jobs:
2424
build-typescript-linux:

.github/workflows/ci-release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Release to GitHub and Npm
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v1
11+
with:
12+
node-version: "14.x"
13+
- run: make release
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/upgrade-dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- cron: '0 1 * * *'
66

77
env:
8-
node-version: 12
8+
node-version: 14
99
android-api-level: 31
1010

1111
jobs:

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no-install commitlint --edit $1

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
yarn lint
2+
yarn test

.jestrc.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"preset": "react-native",
3+
"modulePathIgnorePatterns": ["<rootDir>/lib/"],
4+
"reporters": [
5+
"default",
6+
[
7+
"jest-junit",
8+
{
9+
"suiteName": "jest tests",
10+
"outputDirectory": "./output",
11+
"outputName": "typescript-test-output.xml"
12+
}
13+
]
14+
]
15+
}

.prettierrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"quoteProps": "consistent",
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"trailingComma": "es5",
6+
"useTabs": false
7+
}

0 commit comments

Comments
 (0)