From 1a37c9aad1796d9d0d4fd6b9168656a2ebe0d2b2 Mon Sep 17 00:00:00 2001 From: Edwin Joassart Date: Tue, 10 Jan 2023 14:21:10 +0100 Subject: [PATCH] patch: send sourcemap to sentry at build --- .github/actions/publish/action.yml | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/actions/publish/action.yml b/.github/actions/publish/action.yml index f63dec95..2b1146d8 100644 --- a/.github/actions/publish/action.yml +++ b/.github/actions/publish/action.yml @@ -183,11 +183,12 @@ runs: - name: Upload sourcemap to Sentry shell: bash --noprofile --norc -eo pipefail -x {0} run: | - VERSION=${{ steps.package_release.outputs.version }} npm run uploadSourcemap + npm run uploadSourcemap env: SENTRY_AUTH_TOKEN: ${{ fromJSON(inputs.secrets).SENTRY_AUTH_TOKEN }} SENTRY_ORG: balenaEtcher SENTRY_PROJECT: balenaetcher + SENTRY_VERSION: ${{ steps.package_release.outputs.version }} - name: Upload artifacts uses: actions/upload-artifact@v3 diff --git a/package.json b/package.json index fb82900a..b3307e9b 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "test-windows": "npm run lint && npm run test-gui && npm run test-shared && npm run test-spectron && npm run sanity-checks", "test": "echo npm run test-{linux,windows,macos}", "watch": "webpack serve --no-optimization-minimize --config ./webpack.dev.config.ts", - "uploadSourcemap": "sentry-cli releases files $VERSION upload-sourcemaps ./generated/*.js.map", + "uploadSourcemap": "sentry-cli -o npm_config_SENTRY_ORG -p npm_config_SENTRY_PROJECT releases files npm_config_SENTRY_VERSION upload-sourcemaps ./generated/*.js.map", "webpack": "webpack" }, "husky": {