Skip to content

Update package.json #64

Update package.json

Update package.json #64

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Publish latest
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [ master ]
concurrency:
group: master
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
expo-publish-latest:
# The type of runner that the job will run on
runs-on: ubuntu-latest
timeout-minutes: 20
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn install
working-directory: example-expo
- name: Expo GitHub Action
uses: expo/expo-github-action@v7
with:
# Your Expo username, for authentication.
token: ${{ secrets.EXPO_TOKEN }}
expo-version: latest
eas-version: latest
# If Expo should be stored in the GitHub Actions cache (can be true or false)
expo-cache: true # optional
- name: Find Metro cache
id: metro-cache-dir-path
uses: actions/github-script@v4
with:
result-encoding: string
script: |
const os = require('os');
const path = require('path');
return path.join(os.tmpdir(), 'metro-cache');
- name: Restore Metro cache
uses: actions/cache@v2
with:
path: ${{ steps.metro-cache-dir-path.outputs.result }}
key: ${{ runner.os }}-metro-cache-${{ matrix.app }}-${{ github.ref }}
restore-keys: |
${{ runner.os }}-metro-cache-${{ matrix.app }}-${{ github.base_ref }}
${{ runner.os }}-metro-cache-${{ matrix.app }}-
# Runs a set of commands using the runners shell
- name: Publish
run: echo "BUILD_ID=`CI=1 npx eas-cli@latest update --branch=master --auto -p=ios --json --non-interactive | jq -r -c '.[] | select(.platform | contains("ios")) | .id'`" >> $GITHUB_ENV
working-directory: example-expo