Skip to content

Merge pull request #216 from Scottish-Tech-Army/updateEASConfigFile #7

Merge pull request #216 from Scottish-Tech-Army/updateEASConfigFile

Merge pull request #216 from Scottish-Tech-Army/updateEASConfigFile #7

Workflow file for this run

on:
push:
branches:
- main
name: πŸš€ build Expo Go preview
jobs:
preview:
runs-on: ubuntu-latest
env:
STA_API_BASE_URL: https://the-sta.com
STA_API_VERSION: v1
FEATURES_ENABLED: events,profileScreen
steps:
- name: πŸ— Setup repo
uses: actions/checkout@v4
- name: πŸ— Setup Node
uses: actions/setup-node@v4
with:
node-version: 18.14
cache: 'npm'
- name: πŸ— Setup EAS
uses: expo/expo-github-action@v7
with:
eas-version: latest
token: ${{ secrets.EXPO_ACCESS_TOKEN }}
- name: πŸ“¦ Install dependencies
run: npm ci
- name: πŸš€ Create preview
uses: expo/expo-github-action/preview@v8
id: preview
with:
command: eas update --auto
comment: false
# TODO
# - name: πŸ’¬ Comment in Slack
# uses: slackapi/[email protected]
# env:
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_TOKEN }}
# with:
# channel-id: deployments
# slack-message: 'New deployment is ready!\n- Preview: ${{ steps.preview.outputs.qr }}'