Skip to content

Commit

Permalink
chore: disable all github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
giu7d committed May 27, 2024
1 parent 6f4b55d commit e4b0c16
Show file tree
Hide file tree
Showing 6 changed files with 294 additions and 294 deletions.
114 changes: 57 additions & 57 deletions .github/actions/setup-monorepo/action.yml
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 }}
62 changes: 31 additions & 31 deletions .github/workflows/development-native-release.yml
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
60 changes: 30 additions & 30 deletions .github/workflows/pr-ota-preview.yml
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
Loading

0 comments on commit e4b0c16

Please sign in to comment.