Skip to content

Commit

Permalink
Merge pull request #1 from displaynone:github-actions
Browse files Browse the repository at this point in the history
feat: added github actions
  • Loading branch information
displaynone authored Mar 13, 2023
2 parents c00274a + 1833b81 commit 3b1fe06
Show file tree
Hide file tree
Showing 12 changed files with 151 additions and 42 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
EAS_PROJECT_ID=xxxxxxxxxxxxxxx
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on: [pull_request]
jobs:
preview:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3

- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm

- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
expo-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: 📦 Install dependencies
run: npm install

- name: 🚀 Create preview
uses: expo/expo-github-action/preview@v8
with:
command: eas update --auto
19 changes: 19 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: expo
default-branch: main
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,6 @@ dist/
android/
./.expo-shared

.env

# @end expo-cli
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
Empty file added CHANGELOG.md
Empty file.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TimePass

An open source TOTP (Time-based One Time Password)
An open source TOTP (Time-based One Time Password) Android app.

![](./docs/logo.png)

Expand Down
45 changes: 45 additions & 0 deletions app.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import 'dotenv/config';

module.exports = {
expo: {
name: 'TimePass',
slug: 'timepass',
version: '1.0.0',
orientation: 'portrait',
icon: './assets/logo.png',
splash: {
image: './assets/splash.png',
resizeMode: 'cover',
backgroundColor: '#003554',
},
updates: {
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: ['**/*'],
android: {
adaptiveIcon: {
foregroundImage: './assets/logo.png',
backgroundColor: '#FFFFFF',
},
package: 'com.displaynone.timepass',
},
scheme: 'timepass',
plugins: [
'expo-localization',
'@morrowdigital/watermelondb-expo-plugin',
[
'expo-build-properties',
{
android: {
kotlinVersion: '1.6.10',
},
},
],
],
extra: {
eas: {
projectId: process.env.EAS_PROJECT_ID,
},
},
},
};
40 changes: 0 additions & 40 deletions app.json

This file was deleted.

21 changes: 21 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"cli": {
"version": ">= 3.7.2"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal",
"android": {
"buildType": "apk"
}
},
"production": {}
},
"submit": {
"production": {}
}
}
30 changes: 30 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"lingui:compile": "lingui compile",
"prepare": "husky install",
"lint": "eslint ./ --ext ts,tsx --fix",
"commit:lint": "commitlint"
"commit:lint": "commitlint",
"eas:build": "eas build -p android --profile preview"
},
"dependencies": {
"@babel/plugin-proposal-decorators": "^7.21.0",
Expand All @@ -26,6 +27,7 @@
"@react-native-masked-view/masked-view": "0.2.8",
"@react-navigation/native": "^6.1.4",
"@react-navigation/stack": "^6.3.14",
"dotenv": "^16.0.3",
"expo": "~48.0.6",
"expo-barcode-scanner": "~12.3.2",
"expo-build-properties": "~0.5.1",
Expand Down Expand Up @@ -86,6 +88,7 @@
"babel-loader": "^9.1.2",
"babel-plugin-macros": "^3.1.0",
"babel-preset-react": "^6.24.1",
"eas": "^0.1.0",
"eslint": "^8.34.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-no-smart-quotes": "^1.3.0",
Expand Down

0 comments on commit 3b1fe06

Please sign in to comment.