Repository navigation
feat: add GitHub Action for source maps upload - #253
Conversation
unjica
left a comment
There was a problem hiding this comment.
Hey @FelineFantasy — thanks for taking this on! I really like that you included both the composite action and the documentation example—that’s exactly the kind of developer experience I’d like Telemetry Tracker to have.
There are a few things that need to line up with the current API and GitHub Actions conventions before I can merge this.
Action setup
Composite actions should live under .github/actions/upload-source-maps/action.yml, not .github/action.yml.
The docs example should also point to that action path (or a published ref such as @main or a version tag) instead of using uses: ./.
Upload API
The current POST /api/project/source-maps endpoint expects a JSON payload (app, release, bundle_url, content) together with a dashboard session and X-Project-Id.
It doesn’t currently support multipart uploads or X-API-Key authentication, so the current implementation wouldn’t work against the production API.
The API host should also be:
https://api.telemetry-tracker.com
instead of:
https://telemetry-tracker.com
bundle_url
bundle_url is required to associate each source map with its JavaScript bundle for symbolication, but the action doesn’t send it yet.
A couple of smaller improvements
artifact_path/*.maponly matches top-level files. Usingfindrecursively would also pick up nested build outputs such asdist/assets/*.map.- Adding
--fail-with-bodyto curl would ensure failed uploads correctly fail the workflow.
Next step
This feature depends on having a CI-friendly upload endpoint first. Once that’s available, this action can be updated to use it. Until then, it should match the current API contract.
Also, when you push updates, please retarget the PR to develop.
The idea itself is solid—it just needs to match the current implementation before I can merge it.
Push an update when you’re ready and I’ll happily take another look. I’d love to get this feature in. 🚀
|
@unjica Done! I've successfully retargeted the Pull Request to the develop branch and applied all the requested changes to the Action and documentation. Ready for another look! 🚀 |
|
Hey @FelineFantasy — thanks for the update! This is looking much better. The action is in the right place now, it's using the correct API, and I like the recursive file discovery and error handling. Nice improvements overall. I only spotted two things before I can merge this.
|
|
Hey @unjica! Thanks for the review! I've pushed the updates: · Fixed bundle_url to preserve nested paths (e.g., assets/app.js.map → assets/app.js) Should be good to go now. Ready for another look! 🚀 |
|
Hey @FelineFantasy — thanks for the follow-up! This is looking really good. The docs expressions are fixed, and I like that you tackled the There's just one small thing left before I can merge this.
|
|
Hey @unjica! Thanks for the review! I've pushed the final fixes:
I split these into two separate commits for clarity. This should be ready to go now. Let me know if there's anything else! 🚀 |
unjica
left a comment
There was a problem hiding this comment.
Thanks for sticking with this and addressing all the feedback!
Everything looks good to me now. There are still a few follow-up improvements I'd like to make around CI authentication and self-hosted support, but those can come in future PRs.
Nice work, and thanks again for the contribution! 🚀
|
bugbot run |
|
@cursor review |
Co-authored-by: Cursor <[email protected]>
Summary
Added a composite GitHub Action to automate the upload of source map artifacts to the Telemetry-Tracker API upon a new release. Also updated the documentation with a workflow example.
Closes #98
How to test
Review the
action.ymlfile structure and check the updated usage example at the bottom ofdocs/source-maps.md.Checklist
Security / privacy
N/A. Uses the provided project API key via action inputs.