Skip to content

fix: small change

fix: small change #10

Workflow file for this run

name: Build and Deploy to Preview
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# Lint job
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm lint
# Build Android
build-android:
name: Build Android
needs: lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Setup Java 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: πŸ— Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
packager: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Expo Prebuild
run: pnpm prebuild:clean
- name: πŸš€ Build app
run: eas build --local --platform android --profile preview --non-interactive
- name: Push update to Preview
run: eas update --auto --non-interactive
# build-ios:
# name: Build iOS
# runs-on: macos-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - uses: pnpm/action-setup@v4
# name: Install pnpm
# id: pnpm-install
# with:
# version: 8
# run_install: false
# - name: Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: '20'
# cache: 'pnpm'
# - name: πŸ— Setup EAS
# uses: expo/expo-github-action@v8
# with:
# eas-version: latest
# token: ${{ secrets.EXPO_TOKEN }}
# packager: pnpm
# - name: Install dependencies
# run: pnpm install --frozen-lockfile
# - name: Expo Prebuild
# run: pnpm prebuild:clean
# - name: πŸš€ Build app
# run: eas build --local --platform ios --profile preview --non-interactive