ci: only run eas-update on version change #8
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: eas update auto | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
commit-filter: | |
uses: ./.github/workflows/commit-filter.yml | |
update: | |
runs-on: ubuntu-latest | |
needs: commit-filter | |
if: ${{ needs.commit-filter.outputs.skip-eas-workflow == 'false' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
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 update | |
run: eas update --auto --non-interactive |