question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EAS Update: Preview with comment

See original GitHub issue

Description of the feature

expo/expo-github-action/preview-comment to be compatible with EAS Update.

Motivation

We have examples for EAS build in the README and it is possible to open channels/branches with the expo app but with classic release channels we are able to scan a QR code.

Additional context

      - name: Setup Expo
        uses: expo/expo-github-action@7.2.0
        with:
          expo-version: latest
          eas-version: latest
          token: ${{ secrets.EXPO_TOKEN }}

      - name: Publish preview
        run: eas update --branch pr-${{ github.event.number }} --message 'Update with commit ${{ github.sha }}'

      - name: Comment preview
        uses: expo/expo-github-action/preview-comment@7.2.0
        with:
          channel: pr-${{ github.event.number }}

Comment preview will use classic release channels to generate the QR code, so when scanning the code, it won’t work.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:11
  • Comments:15

github_iconTop GitHub Comments

5reactions
robertoyoccommented, Aug 9, 2022

Got it working by doing:

      - name: Publish preview
         run: eas update --branch pr-${{ github.event.number }} --message 'Update with commit ${{ github.sha }}'
      - name: Comment preview
         uses: expo/expo-github-action/preview-comment@7.2.0
         with:
          message: '<h2>Your Project!</h2><h3>Channel: pr-${{ github.event.number }}</h3><a href="exp+<YOUR_SCHEME>://expo-development-client/?url=<YOUR_EXPO_UPDATES_URL>%3Fchannel-name%3Dpr-${{ github.event.number }}"><img src="https://qr.expo.dev/development-client?appScheme=exp%2B<YOUR_SCHEME>&url=<YOUR_EXPO_UPDATES_URL>%3Fchannel-name%3Dpr-${{ github.event.number }}" height="200px" width="200px"></a>'

Replace:

  • < YOUR_SCHEME >
  • < YOUR_EXPO_UPDATES_URL > with your urlEncoded expo updates url.

Also, you need an internal distribution (development) build to be able to scan the QR.

4reactions
lachenmayercommented, Aug 22, 2022

We ran into this issue ourselves, we’re using the following fork: https://github.com/expo/expo-github-action/compare/main...lachenmayer:expo-github-action:eas-updates-qr

You can use this with uses: lachenmayer/expo-github-action/preview-comment@eas-updates-qr to try it out, but please don’t rely on it…

This checks whether project.updates.url exists, and creates a QR code compatible with a dev client instead of the Expo Go QR code if so.

Happy to open a PR if you agree with the approach.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introducing EAS Update to Preview | by Jon Samp - Expo Blog
Today, EAS Update is going into preview. EAS Update is a hosted service that allows you to deliver small updates to your users...
Read more >
EAS Update QR Commenter · Actions · GitHub Marketplace
On Pull Requests, adds a comment with QR codes that link to the Expo Go App and into the respective Update. I created...
Read more >
Issue Using EAS Updates : r/expo - Reddit
I have updated the app to use eas builds and updates using eas ... create a branch using eas update --branch preview --message...
Read more >
Expo EAS: How to link eas update branch with build channel?
However the changes do not populate to the preview version submitted to App Store and Play Store. Do i need to do some...
Read more >
DEPLOY | EAS UPDATE: Incrível atualização do Expo
No vídeo de hoje o educador e mentor Ismael Moreira ensina como implementar um fluxo simple de deploy no github actions para disponibilizar ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found