From 821cde2e7c14afcb5b132aff718cef51f84e6171 Mon Sep 17 00:00:00 2001 From: Ben Watts Date: Thu, 22 Feb 2024 16:39:28 +0000 Subject: [PATCH 1/2] fix github action for production channel --- .github/workflows/update.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 041527a..647ad11 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -1,5 +1,9 @@ name: update -on: push + +on: + push: + branches: + - production # This specifies that the workflow should only run on pushes to the production branch. jobs: update: @@ -32,4 +36,4 @@ jobs: run: yarn install - name: Publish update - run: eas update --auto + run: eas update --auto --channel production # Here we specify the production channel for the update. From 17655c75447f4b090ad9a3a3a62547becdb68659 Mon Sep 17 00:00:00 2001 From: Ben Watts Date: Thu, 22 Feb 2024 16:42:50 +0000 Subject: [PATCH 2/2] delete eas update for preview (to reduce builds and keep within limits) --- .github/workflows/preview.yml | 40 ----------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 .github/workflows/preview.yml diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml deleted file mode 100644 index 2ebd22a..0000000 --- a/.github/workflows/preview.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: preview -on: pull_request - -jobs: - update: - name: EAS Update - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - steps: - - name: Check for EXPO_TOKEN - run: | - if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then - echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions" - exit 1 - fi - - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: 18.x - cache: yarn - - - name: Setup EAS - uses: expo/expo-github-action@v8 - with: - eas-version: latest - token: ${{ secrets.EXPO_TOKEN }} - - - name: Install dependencies - run: yarn install - - - name: Create preview - uses: expo/expo-github-action/preview@v8 - with: - command: eas update --auto