mirror of
https://github.com/morten-olsen/bob-the-algorithm.git
synced 2026-02-08 00:46:25 +01:00
monorepo
This commit is contained in:
15
.github/workflows/expo-main.yml
vendored
15
.github/workflows/expo-main.yml
vendored
@@ -17,14 +17,17 @@ jobs:
|
||||
|
||||
- name: Install and Build 🔧
|
||||
run: |
|
||||
corepack enable
|
||||
yarn install
|
||||
yarn expo build:web
|
||||
yarn build:web
|
||||
yarn build:storybook
|
||||
cp -r packages/ui/public packages/app/web-build/design-system
|
||||
- name: Deploy 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@4.0.0
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: gh-pages
|
||||
folder: web-build
|
||||
folder: packages/app/web-build
|
||||
publish-native:
|
||||
name: Publish native versions
|
||||
runs-on: ubuntu-latest
|
||||
@@ -44,18 +47,24 @@ jobs:
|
||||
git config --global user.email "github-action@example.com"
|
||||
git config --global user.name "Github Bot"
|
||||
yarn version --new-version=$BUILD_VERSION
|
||||
working-directory: packages/app
|
||||
env:
|
||||
BUILD_VERSION: 1.${{ github.run_id }}.${{ github.run_number }}
|
||||
- run: yarn install
|
||||
|
||||
- run: |
|
||||
corepack enable
|
||||
yarn install
|
||||
|
||||
- run: echo $BUILD_VERSION
|
||||
|
||||
# - run: eas build -p android --non-interactive
|
||||
|
||||
- run: eas build -p ios --non-interactive
|
||||
working-directory: packages/app
|
||||
env:
|
||||
EXPO_APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.EXPO_APPLE_APP_SPECIFIC_PASSWORD }}
|
||||
|
||||
- run: eas submit --platform ios --non-interactive --latest
|
||||
working-directory: packages/app
|
||||
env:
|
||||
EXPO_APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.EXPO_APPLE_APP_SPECIFIC_PASSWORD }}
|
||||
|
||||
10
.github/workflows/expo-pr.yml
vendored
10
.github/workflows/expo-pr.yml
vendored
@@ -9,15 +9,18 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12.x
|
||||
|
||||
- uses: expo/expo-github-action@v5
|
||||
with:
|
||||
expo-packager: yarn
|
||||
expo-username: ${{ secrets.EXPO_CLI_USERNAME }}
|
||||
expo-password: ${{ secrets.EXPO_CLI_PASSWORD }}
|
||||
expo-cache: true
|
||||
|
||||
- name: Cache Node Modules
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
@@ -30,9 +33,14 @@ jobs:
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
- name: Install Packages
|
||||
run: npm i -g yarn && yarn install
|
||||
run: |
|
||||
corepack enable
|
||||
yarn install
|
||||
|
||||
- name: Expo Publish Channel
|
||||
run: expo publish --non-interactive --release-channel pr${{ github.event.number }}
|
||||
working-directory: packages/app
|
||||
|
||||
- name: Add Comment To PR
|
||||
uses: mshick/add-pr-comment@v1
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user