-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
294 additions
and
294 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
name: Setup Monorepo | ||
description: Prepare and install everything for the monorepo | ||
|
||
inputs: | ||
node-version: | ||
description: Version of Node to use | ||
default: 18.15.0 | ||
|
||
pnpm-version: | ||
description: Version of pnpm to use | ||
default: 8.1.0 | ||
|
||
eas-version: | ||
description: Version of EAS CLI to use | ||
default: latest | ||
|
||
expo-version: | ||
description: Version of Expo CLI to use | ||
default: latest | ||
|
||
expo-token: | ||
description: Expo token to authenticate with | ||
required: false | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
|
||
- name: π Setup PNPM | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: ${{ inputs.pnpm-version }} | ||
|
||
- name: π Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
cache: pnpm | ||
|
||
- name: π Setup Expo | ||
uses: expo/expo-github-action@v7 | ||
with: | ||
eas-version: ${{ inputs.eas-version }} | ||
expo-version: ${{ inputs.expo-version }} | ||
token: ${{ inputs.expo-token }} | ||
|
||
- name: π¦ Install dependencies | ||
run: pnpm install | ||
shell: bash | ||
|
||
- name: β»οΈ Restore cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: node_modules/.cache/turbo | ||
key: turbo-${{ runner.os }}-${{ github.job }}-${{ github.sha }} | ||
restore-keys: | | ||
turbo-${{ runner.os }}-${{ github.job }} | ||
# name: Setup Monorepo | ||
# description: Prepare and install everything for the monorepo | ||
|
||
# inputs: | ||
# node-version: | ||
# description: Version of Node to use | ||
# default: 18.15.0 | ||
|
||
# pnpm-version: | ||
# description: Version of pnpm to use | ||
# default: 8.1.0 | ||
|
||
# eas-version: | ||
# description: Version of EAS CLI to use | ||
# default: latest | ||
|
||
# expo-version: | ||
# description: Version of Expo CLI to use | ||
# default: latest | ||
|
||
# expo-token: | ||
# description: Expo token to authenticate with | ||
# required: false | ||
|
||
# runs: | ||
# using: composite | ||
# steps: | ||
|
||
# - name: π Setup PNPM | ||
# uses: pnpm/action-setup@v2 | ||
# with: | ||
# version: ${{ inputs.pnpm-version }} | ||
|
||
# - name: π Setup Node | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: ${{ inputs.node-version }} | ||
# cache: pnpm | ||
|
||
# - name: π Setup Expo | ||
# uses: expo/expo-github-action@v7 | ||
# with: | ||
# eas-version: ${{ inputs.eas-version }} | ||
# expo-version: ${{ inputs.expo-version }} | ||
# token: ${{ inputs.expo-token }} | ||
|
||
# - name: π¦ Install dependencies | ||
# run: pnpm install | ||
# shell: bash | ||
|
||
# - name: β»οΈ Restore cache | ||
# uses: actions/cache@v3 | ||
# with: | ||
# path: node_modules/.cache/turbo | ||
# key: turbo-${{ runner.os }}-${{ github.job }}-${{ github.sha }} | ||
# restore-keys: | | ||
# turbo-${{ runner.os }}-${{ github.job }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
name: Development - Native Release | ||
# name: Development - Native Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
platform: | ||
description: Platform to build for (all/android/ios) | ||
type: choice | ||
required: true | ||
default: all | ||
options: | ||
- all | ||
- android | ||
- ios | ||
# on: | ||
# workflow_dispatch: | ||
# inputs: | ||
# platform: | ||
# description: Platform to build for (all/android/ios) | ||
# type: choice | ||
# required: true | ||
# default: all | ||
# options: | ||
# - all | ||
# - android | ||
# - ios | ||
|
||
jobs: | ||
native-release-mobile: | ||
runs-on: ubuntu-latest | ||
env: | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | ||
steps: | ||
- name: π Setup repository | ||
uses: actions/checkout@v3 | ||
# jobs: | ||
# native-release-mobile: | ||
# runs-on: ubuntu-latest | ||
# env: | ||
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
# TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | ||
# steps: | ||
# - name: π Setup repository | ||
# uses: actions/checkout@v3 | ||
|
||
- name: π Setup monorepo | ||
uses: ./.github/actions/setup-monorepo | ||
with: | ||
expo-token: ${{ secrets.EXPO_TOKEN }} | ||
# - name: π Setup monorepo | ||
# uses: ./.github/actions/setup-monorepo | ||
# with: | ||
# expo-token: ${{ secrets.EXPO_TOKEN }} | ||
|
||
- name: π¦ Build packages for mobile | ||
run: pnpm run build:mobile | ||
# - name: π¦ Build packages for mobile | ||
# run: pnpm run build:mobile | ||
|
||
- name: π Build for mobile | ||
working-directory: apps/mobile | ||
run: eas build --non-interactive --wait --platform=${{ github.event.inputs.platform }} --profile=development | ||
# - name: π Build for mobile | ||
# working-directory: apps/mobile | ||
# run: eas build --non-interactive --wait --platform=${{ github.event.inputs.platform }} --profile=development |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
name: Pull Request - OTA Preview | ||
# name: Pull Request - OTA Preview | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
# on: | ||
# pull_request: | ||
# types: [opened, synchronize] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
# concurrency: | ||
# group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | ||
# cancel-in-progress: true | ||
|
||
jobs: | ||
preview-mobile: | ||
runs-on: ubuntu-latest | ||
env: | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | ||
steps: | ||
- name: π Setup repository | ||
uses: actions/checkout@v3 | ||
# jobs: | ||
# preview-mobile: | ||
# runs-on: ubuntu-latest | ||
# env: | ||
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
# TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | ||
# steps: | ||
# - name: π Setup repository | ||
# uses: actions/checkout@v3 | ||
|
||
- name: π Setup monorepo | ||
uses: ./.github/actions/setup-monorepo | ||
with: | ||
expo-token: ${{ secrets.EXPO_TOKEN }} | ||
# - name: π Setup monorepo | ||
# uses: ./.github/actions/setup-monorepo | ||
# with: | ||
# expo-token: ${{ secrets.EXPO_TOKEN }} | ||
|
||
- name: π¦ Build packages for mobile | ||
run: pnpm run build:mobile | ||
# - name: π¦ Build packages for mobile | ||
# run: pnpm run build:mobile | ||
|
||
- name: π Publish update for mobile | ||
working-directory: apps/mobile | ||
run: eas update --non-interactive --channel=development --message=pr-${{ github.event.number }} | ||
# - name: π Publish update for mobile | ||
# working-directory: apps/mobile | ||
# run: eas update --non-interactive --channel=development --message=pr-${{ github.event.number }} | ||
|
||
- name: π¬ Comment update for mobile | ||
uses: expo/expo-github-action/preview-comment@v7 | ||
with: | ||
project: apps/mobile | ||
channel: development | ||
# - name: π¬ Comment update for mobile | ||
# uses: expo/expo-github-action/preview-comment@v7 | ||
# with: | ||
# project: apps/mobile | ||
# channel: development |
Oops, something went wrong.