Added App Store release guide #2776
Workflow file for this run
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: ci | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
actions: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Dependabot metadata | |
if: github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' | |
id: dependabot-metadata | |
uses: dependabot/fetch-metadata@v1 | |
- name: Check if it is a dependency that should be managed by Expo | |
if: github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const script = require(`./scripts/check-expo-dependencies.js`); | |
await script({ | |
context, | |
github, | |
fetch, | |
dependencyNames: `${{ steps.dependabot-metadata.outputs.dependency-names }}` | |
}); | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
- run: yarn | |
- run: yarn lint | |
- run: yarn typecheck | |
- run: npx expo-doctor | |
- run: yarn test | |
automerge: | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
contents: write | |
steps: | |
- uses: fastify/github-action-merge-dependabot@v3 | |
eas-update: | |
needs: build | |
if: github.actor != 'dependabot[bot]' | |
uses: ./.github/workflows/expo-eas-update.yml | |
with: | |
channel: ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || 'preview' }} | |
message: ${{ github.event.head_commit.message || github.event.pull_request.title }} | |
secrets: | |
expo-token: ${{ secrets.EXPO_TOKEN }} | |
build-ios: | |
needs: build | |
if: github.event_name == 'pull_request' && startsWith(github.event.pull_request.title, '[OPTIC-RELEASE-AUTOMATION]') | |
uses: ./.github/workflows/expo-eas-build.yml | |
with: | |
profile: production | |
platform: ios | |
secrets: | |
expo-token: ${{ secrets.EXPO_TOKEN }} | |
build-android: | |
needs: build | |
if: github.event_name == 'pull_request' && startsWith(github.event.pull_request.title, '[OPTIC-RELEASE-AUTOMATION]') | |
uses: ./.github/workflows/expo-eas-build.yml | |
with: | |
profile: production | |
platform: android | |
secrets: | |
expo-token: ${{ secrets.EXPO_TOKEN }} |