Merge pull request #255 from mia-ajuda/fix/get_id_from_null #269
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: expo publish | |
# on : | |
# push : | |
# branches : [ develop ] | |
# pull_request: | |
# types: [opened, synchronize] | |
# concurrency: | |
# group: publish-${{ github.ref }} | |
# cancel-in-progress: true | |
# jobs: | |
# build-deploy: | |
# runs-on: ubuntu-latest | |
# defaults: | |
# run: | |
# shell: bash | |
# working-directory: ./app | |
# steps: | |
# - name: π Setup repo | |
# uses: actions/checkout@v3 | |
# - name: π Setup node | |
# uses: actions/setup-node@v3 | |
# with: | |
# node-version: 14.x | |
# cache: yarn | |
# cache-dependency-path: app/yarn.lock | |
# - name: π Config files | |
# run: | | |
# echo "$GOOGLE_SERVICES" > google-services.json | |
# echo "$FIREBASE_CONFIG_DEV" > ./src/config/authmiaajuda-firebase-dev.json | |
# echo "$FIREBASE_CONFIG" > ./src/config/authmiaajuda-firebase.json | |
# echo "$ENV_VARIABLE" > .env | |
# env: | |
# GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }} | |
# FIREBASE_CONFIG_DEV: ${{ secrets.FIREBASE_CONFIG_DEV }} | |
# FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }} | |
# ENV_VARIABLE: ${{ secrets.ENV_VARIABLE }} | |
# - name: π Setup Expo | |
# uses: expo/expo-github-action@v7 | |
# with: | |
# expo-version: latest | |
# token: ${{ secrets.EXPO_TOKEN }} | |
# - name: π¦ Install dependencies | |
# run: yarn install --pure-lockfile --non-interactive | |
# - name: π¦ Run lint | |
# run: yarn lint | |
# - name: π¦ Publish staging | |
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }} | |
# run: expo publish --release-channel=staging --non-interactive | |
# - name: π¦ Publish preview | |
# if: ${{ github.event_name == 'pull_request' }} | |
# run: expo publish --release-channel=pr-${{ github.event.number }} | |
# - name: π¦ Comment preview | |
# if: ${{ github.event_name == 'pull_request' }} | |
# uses: expo/expo-github-action/preview-comment@v7 | |
# with: | |
# project: app | |
# channel: pr-${{ github.event.number }} |