mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-28 20:35:19 +08:00
41 lines
929 B
YAML
41 lines
929 B
YAML
name: Expo Publish
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
publish:
|
|
name: Install and publish
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14.x
|
|
|
|
- name: Setup Expo
|
|
uses: expo/expo-github-action@v5
|
|
with:
|
|
expo-token: ${{ secrets.EXPO_TOKEN }}
|
|
expo-cache: true
|
|
|
|
- name: Restore yarn cache
|
|
id: yarn-cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: '**/node_modules'
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
- name: Install dependencies
|
|
if: steps.yarn-cache.outputs.cache-hit != 'true'
|
|
run: yarn install --frozen-lockfile
|
|
|
|
- name: Publish Expo app
|
|
working-directory: ./example
|
|
run: yarn expo publish
|