From 075a65b74796e46368ab6d12b45cb22e3c7006ac Mon Sep 17 00:00:00 2001 From: Michael van Tellingen Date: Wed, 12 Feb 2025 07:31:58 +0100 Subject: [PATCH] feat: add sentry debug ids to sourcemaps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add debug id’s to the sourcemaps before pushing them to Sentry to make the matching of sourcemaps easier --- action.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index f5b3215..04fc753 100644 --- a/action.yaml +++ b/action.yaml @@ -31,6 +31,7 @@ runs: working-directory: ${{ inputs.working-directory }} run: | echo "${GITHUB_REPOSITORY}@${{ steps.setSHAs.outputs.base }}..${{ steps.setSHAs.outputs.head }}" + sentry-cli sourcemaps inject . + sentry-cli sourcemaps upload --release "${SENTRY_RELEASE}" ${{ inputs.sourcemap-flags }} --wait --validate . sentry-cli releases new "${SENTRY_RELEASE}" sentry-cli releases set-commits "${SENTRY_RELEASE}" --commit "${GITHUB_REPOSITORY}@${{ steps.setSHAs.outputs.base }}..${{ steps.setSHAs.outputs.head }}" - sentry-cli releases files "${SENTRY_RELEASE}" upload-sourcemaps ${{ inputs.sourcemap-flags }} --validate sourcemaps --wait .