patch: send sourcemap to sentry at build

This commit is contained in:
Edwin Joassart 2023-01-10 14:21:10 +01:00
parent e6bbbb6676
commit 1a37c9aad1
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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": {