Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Pramad712/Signup
Browse files Browse the repository at this point in the history
  • Loading branch information
Pramad712 committed Jun 19, 2024
2 parents 3876529 + 11011b2 commit cdbaf83
Show file tree
Hide file tree
Showing 5 changed files with 140 additions and 23 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: preview
on:
# This workflow should only be run on trusted pull requests
pull_request_target:
types: [opened, synchronize]

jobs:
update:
name: EAS Update
if: |
github.event.pull_request.author_association == 'MEMBER' ||
github.event.pull_request.author_association == 'COLLABORATOR'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm

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

- name: Install dependencies
run: npm ci

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

jobs:
style:
name: Check style
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm

- name: Install dependencies
run: npm ci

- name: Check style
run: npm run check
31 changes: 31 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: update
on:
push:
branches:
- main

jobs:
update:
name: EAS Update
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm

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

- name: Install dependencies
run: npm ci

- name: Publish update
run: eas update --auto
54 changes: 35 additions & 19 deletions package-lock.json

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

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,25 @@
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web"
"web": "expo start --web",
"format": "prettier --write src/**/*.js App.js",
"check": "prettier --check src/**/*.js App.js"
},
"dependencies": {
"@react-native-community/cli": "^13.6.9",
"expo": "~51.0.11",
"expo-constants": "^16.0.2",
"expo-status-bar": "~1.12.1",
"expo-updates": "~0.25.17",
"react": "^18.2.0",
"react-dom": "18.2.0",
"react-native": "0.74.2",
"react-native-web": "~0.19.10",
"expo-updates": "~0.25.17"
"react-native-web": "~0.19.10"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@expo/metro-runtime": "^3.2.1"
"@expo/metro-runtime": "^3.2.1",
"prettier": "^3.3.2"
},
"private": true
}

0 comments on commit cdbaf83

Please sign in to comment.