Last active
July 28, 2021 15:35
-
-
Save jonsamp/0a16b14d3dba61a8fc58c8cba3557721 to your computer and use it in GitHub Desktop.
EAS publish GitHub action
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: update | |
on: | |
push: | |
branches: [main] | |
jobs: | |
update: | |
name: EAS Update | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- uses: expo/expo-github-action@v6 | |
with: | |
expo-version: latest | |
eas-version: latest | |
token: ${{ secrets.EXPO_TOKEN }} | |
expo-cache: true | |
eas-cache: true | |
- name: Find cache | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: Restore cache | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- run: yarn install | |
- run: eas branch:create $(echo ${{ github.ref }} | sed 's_refs/heads/__') | |
- run: eas branch:publish $(echo ${{ github.ref }} | sed 's_refs/heads/__') --message "${{ github.event.head_commit.message }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment