Skip to content

Instantly share code, notes, and snippets.

@jonsamp
Last active July 28, 2021 15:35
Show Gist options
  • Select an option

  • Save jonsamp/0a16b14d3dba61a8fc58c8cba3557721 to your computer and use it in GitHub Desktop.

Select an option

Save jonsamp/0a16b14d3dba61a8fc58c8cba3557721 to your computer and use it in GitHub Desktop.

Revisions

  1. jonsamp revised this gist Jul 28, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions update.yml
    Original file line number Diff line number Diff line change
    @@ -30,4 +30,5 @@ jobs:
    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 }}"
  2. jonsamp revised this gist Jul 28, 2021. 1 changed file with 10 additions and 8 deletions.
    18 changes: 10 additions & 8 deletions update.yml
    Original file line number Diff line number Diff line change
    @@ -2,19 +2,23 @@ name: update
    on:
    push:
    branches: [main]

    jobs:
    update:
    name: Install and update
    name: EAS Update
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v1
    with:
    node-version: 15.x
    - uses: expo/expo-github-action@v5
    node-version: 14.x
    - uses: expo/expo-github-action@v6
    with:
    expo-version: latest
    eas-version: latest
    token: ${{ secrets.EXPO_TOKEN }}
    expo-cache: true
    expo-token: ${{ secrets.EXPO_TOKEN }}
    eas-cache: true
    - name: Find cache
    id: yarn-cache-dir-path
    run: echo "::set-output name=dir::$(yarn cache dir)"
    @@ -25,7 +29,5 @@ jobs:
    key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
    restore-keys: |
    ${{ runner.os }}-yarn-
    - name: Install dependencies
    run: yarn install --frozen-lockfile --check-files
    - name: Update
    run: npx eas-cli branch:publish $(echo ${{ github.ref }} | sed 's_refs/heads/__') --message "${{ github.event.head_commit.message }}"
    - run: yarn install
    - run: eas branch:publish $(echo ${{ github.ref }} | sed 's_refs/heads/__') --message "${{ github.event.head_commit.message }}"
  3. jonsamp revised this gist Jun 14, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion update.yml
    Original file line number Diff line number Diff line change
    @@ -26,6 +26,6 @@ jobs:
    restore-keys: |
    ${{ runner.os }}-yarn-
    - name: Install dependencies
    run: yarn install
    run: yarn install --frozen-lockfile --check-files
    - name: Update
    run: npx eas-cli branch:publish $(echo ${{ github.ref }} | sed 's_refs/heads/__') --message "${{ github.event.head_commit.message }}"
  4. jonsamp revised this gist Jun 14, 2021. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions update.yml
    Original file line number Diff line number Diff line change
    @@ -28,5 +28,4 @@ jobs:
    - name: Install dependencies
    run: yarn install
    - name: Update
    run: |
    npx eas-cli branch:publish $(echo ${{ github.ref }} | sed 's_refs/heads/__') --message "${{ github.event.head_commit.message }}"
    run: npx eas-cli branch:publish $(echo ${{ github.ref }} | sed 's_refs/heads/__') --message "${{ github.event.head_commit.message }}"
  5. jonsamp created this gist Jun 14, 2021.
    32 changes: 32 additions & 0 deletions update.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    name: update
    on:
    push:
    branches: [main]
    jobs:
    update:
    name: Install and update
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v1
    with:
    node-version: 15.x
    - uses: expo/expo-github-action@v5
    with:
    expo-cache: true
    expo-token: ${{ secrets.EXPO_TOKEN }}
    - 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-
    - name: Install dependencies
    run: yarn install
    - name: Update
    run: |
    npx eas-cli branch:publish $(echo ${{ github.ref }} | sed 's_refs/heads/__') --message "${{ github.event.head_commit.message }}"