chore: app preview builds #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |