uploading source maps from eas build

We’re using EAS with a managed workflow and need to upload JS source maps from eas build to Bugsnag. They do provide a postPublish hook that can be used with expo publish so I’m wondering if I can use that at some point in the eas build process, maybe the eas-build-pre-upload-artifacts hook might be the right place?

If those hooks might work, a few more questions:

  • Are source maps generated by this point?
  • What’s the state of the workspace at this point and where would I find the bundles and source maps?
  • Is there a way to replicate the state locally for testing?
  • Could I use expo publish to emulate the directory structure?