Skip to content

chore: app preview builds #19

chore: app preview builds

chore: app preview builds #19

Workflow file for this run

name: Build Native Previews
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'packages/native-ui/**'
- 'apps/native-ui-storybook/**'
env:
CI: true
jobs:
# build-for-android:
# runs-on: macos-13
# concurrency:
# group: preview-android-${{ github.ref }}
# cancel-in-progress: true
# steps:
# - name: πŸ— Setup repo
# uses: pnpm/action-setup@v2
# with:
# version: 8
# - uses: actions/checkout@v3
# - name: πŸ— Setup Node
# uses: actions/setup-node@v2
# with:
# node-version: '18.x'
# registry-url: 'https://registry.npmjs.org'
# cache: 'pnpm'
# - name: πŸ— Setup Java
# uses: actions/setup-java@v4
# with:
# distribution: 'zulu'
# java-version: '17.0.10'
# java-package: jdk
# architecture: x64
# - name: πŸ— Setup EAS
# uses: expo/expo-github-action@v8
# with:
# eas-version: latest
# token: ${{ secrets.EXPO_TOKEN }}
# - name: πŸ“¦ Install dependencies
# run: pnpm install
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: πŸš€ Build Android APK Bundle
# working-directory: ./apps/native-ui-storybook
# run: pnpm run build:preview:android
# - name: πŸš€ Upload bundle to Appetize
# uses: appetizeio/[email protected]
# with:
# apiToken: ${{ secrets.APPETIZE_API_TOKEN }}
# publicKey: ${{ secrets.APPETIZE_PUBLIC_KEY_ANDROID }}
# appFile: /Users/runner/work/design-systems/design-systems/apps/native-ui-storybook/build/native-ui.apk
# platform: 'android'
build-for-ios:
runs-on: namespace-profile-macos-m2
concurrency:
group: preview-ios-${{ github.ref }}
cancel-in-progress: true
steps:
- name: πŸ— Setup repo
uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/checkout@v3
- name: πŸ— Setup Node
uses: actions/setup-node@v2
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- name: πŸ— Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.2.0'
- name: πŸ— Setup Xcode
run: echo export LANG=en_US.UTF-8 > ~/.profile
- name: πŸ— Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: πŸ“¦ Install dependencies
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: πŸš€ Build iOS app
working-directory: ./apps/native-ui-storybook
run: pnpm run build:preview:ios
- name: πŸš€ Upload bundle to Appetize
uses: appetizeio/[email protected]
with:
apiToken: ${{ secrets.APPETIZE_API_TOKEN }}
publicKey: ${{ secrets.APPETIZE_PUBLIC_KEY_IOS }}
appFile: /Users/runner/work/design-systems/design-systems/apps/native-ui-storybook/build/native-ui.tar.gz
platform: 'ios'