.github/workflows/eas-build.yml
name: EAS Build
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
eas-build:
name: EAS Build
environment: EAS Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
id: version
with:
script: |
const [date] = new Date().toISOString().split('T')
const build = '0.0.' + date.replace(/[^0-9]/g, '')
console.log(build)
return build
result-encoding: string
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
- uses: expo/expo-github-action@4479f0b3692e25169fa71a02c30d6586ec2f5601 # tag=v7.2.0
with:
eas-version: latest
expo-version: 4.x
packager: npm
token: ${{ secrets.EXPO_TOKEN }}
- run: npm ci
- run: |
git config --global user.email "github-bot@defichain.com"
git config --global user.name "defichain-bot"
npx standard-version --release-as ${{steps.version.outputs.result}}
- name: EAS Build - iOS & Android
run: eas build --platform all --non-interactive --wait --profile preview
env:
EAS_PROJECT_ID: ${{ secrets.EAS_PROJECT_ID }}