Skip to content

Commit

Permalink
Upload sourcemap bundles (#558)
Browse files Browse the repository at this point in the history
* Upload sourcemap bundles

* Add sentry-cli
  • Loading branch information
mattgauntseo-sentry authored Jul 27, 2023
1 parent bd3931c commit 6005b3d
Show file tree
Hide file tree
Showing 8 changed files with 88 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
bin/deploy.sh
- name: Sentry Release
uses: getsentry/action-release@v1.2.1
uses: getsentry/action-release@v1.4.1
with:
environment: 'production'
sourcemaps: './lib'
46 changes: 46 additions & 0 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"scripts": {
"build": "yarn tsc -p tsconfig.build.json",
"build:production": "yarn clean && yarn tsc -p tsconfig.build.json",
"build:production": "yarn clean && yarn build && sentry-cli sourcemaps inject ./lib",
"clean": "[ -d lib ] && rm -rf lib/* || true",
"deploy": "yarn build && (yarn deploy:development-metrics)",
"deploy:development-metrics": "./bin/deploy.sh",
Expand Down Expand Up @@ -68,6 +68,7 @@
"typescript": "^4.5.0"
},
"devDependencies": {
"@sentry/cli": "^2.20.1",
"@types/jest": "^27.0.3",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"compilerOptions": {
"sourceMap": true,
"inlineSources": true,
"sourceRoot": "../src/",
"sourceRoot": "/src/",
}
}
39 changes: 38 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,21 @@ __metadata:
languageName: node
linkType: hard

"@sentry/cli@npm:^2.20.1":
version: 2.20.1
resolution: "@sentry/cli@npm:2.20.1"
dependencies:
https-proxy-agent: ^5.0.0
node-fetch: ^2.6.7
progress: ^2.0.3
proxy-from-env: ^1.1.0
which: ^2.0.2
bin:
sentry-cli: bin/sentry-cli
checksum: 358de2d3bc6dfa7639e55dda098b217a94e937de352f0034824bad5cffb74fee7ca6c6efa96faed6977099e7fde670a2e9a3438500e929db26fc146af9872fa6
languageName: node
linkType: hard

"@sentry/core@npm:6.16.1":
version: 6.16.1
resolution: "@sentry/core@npm:6.16.1"
Expand Down Expand Up @@ -6942,6 +6957,20 @@ fsevents@~2.1.2:
languageName: node
linkType: hard

"node-fetch@npm:^2.6.7":
version: 2.6.12
resolution: "node-fetch@npm:2.6.12"
dependencies:
whatwg-url: ^5.0.0
peerDependencies:
encoding: ^0.1.0
peerDependenciesMeta:
encoding:
optional: true
checksum: 3bc1655203d47ee8e313c0d96664b9673a3d4dd8002740318e9d27d14ef306693a4b2ef8d6525775056fd912a19e23f3ac0d7111ad8925877b7567b29a625592
languageName: node
linkType: hard

"node-forge@npm:^1.3.1":
version: 1.3.1
resolution: "node-forge@npm:1.3.1"
Expand Down Expand Up @@ -7666,7 +7695,7 @@ fsevents@~2.1.2:
languageName: node
linkType: hard

"progress@npm:^2.0.0":
"progress@npm:^2.0.0, progress@npm:^2.0.3":
version: 2.0.3
resolution: "progress@npm:2.0.3"
checksum: f67403fe7b34912148d9252cb7481266a354bd99ce82c835f79070643bb3c6583d10dbcfda4d41e04bbc1d8437e9af0fb1e1f2135727878f5308682a579429b7
Expand Down Expand Up @@ -7717,6 +7746,13 @@ fsevents@~2.1.2:
languageName: node
linkType: hard

"proxy-from-env@npm:^1.1.0":
version: 1.1.0
resolution: "proxy-from-env@npm:1.1.0"
checksum: ed7fcc2ba0a33404958e34d95d18638249a68c430e30fcb6c478497d72739ba64ce9810a24f53a7d921d0c065e5b78e3822759800698167256b04659366ca4d4
languageName: node
linkType: hard

"psl@npm:^1.1.33":
version: 1.8.0
resolution: "psl@npm:1.8.0"
Expand Down Expand Up @@ -8217,6 +8253,7 @@ resolve@^1.3.2:
"@octokit/rest": ^18.12.0
"@octokit/types": ^6.34.0
"@octokit/webhooks": ^11.0.0
"@sentry/cli": ^2.20.1
"@sentry/integrations": ^6.16.1
"@sentry/node": ^6.16.1
"@sentry/tracing": ^6.16.1
Expand Down

0 comments on commit 6005b3d

Please sign in to comment.