Skip to content

Commit c777bc6

Browse files
authored
Revert "actions: upload sourcemaps to sentry in staging (#275)"
This reverts commit e2891fd.
1 parent e2891fd commit c777bc6

File tree

5 files changed

+2
-284
lines changed

5 files changed

+2
-284
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,14 @@ jobs:
4141
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1
4242
with:
4343
apiToken: ${{ secrets.CF_API_TOKEN }}
44-
command: deploy --env staging --outdir=./dist
45-
46-
- name: Upload sourcemaps for dist-worker-staging
47-
if: github.event_name == 'push'
48-
env:
49-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
50-
runs: |
51-
npx sentry-cli sourcemaps inject --org nodejs --project dist-worker-staging ./dist && sentry-cli sourcemaps upload --org nodejs --project dist-worker-staging ./dist
44+
command: deploy --env staging
5245

5346
- name: Deploy to Production
5447
if: github.event_name == 'workflow_dispatch'
5548
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1
5649
with:
5750
apiToken: ${{ secrets.CF_API_TOKEN }}
58-
command: deploy --env prod --outdir=./dist
51+
command: deploy --env prod
5952

6053
- name: Alert on Failure
6154
if: failure() && github.repository == 'nodejs/release-cloudflare-worker'

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@ node_modules/
22
.wrangler/
33
dist/
44
.dev.vars
5-
6-
.sentryclirc

package-lock.json

Lines changed: 0 additions & 265 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"@eslint/eslintrc": "^3.2.0",
1919
"@eslint/js": "^9.32.0",
2020
"@reporters/github": "^1.7.2",
21-
"@sentry/cli": "^2.54.0",
2221
"@types/mustache": "^4.2.6",
2322
"@types/node": "^24.3.0",
2423
"@typescript-eslint/eslint-plugin": "^8.41.0",

src/worker.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ export default {
4545
execution: ctx,
4646
};
4747

48-
if (
49-
env.ENVIRONMENT === 'staging' &&
50-
request.url === '/_657ee98d-f9d3-46cd-837b-f58a88add70a'
51-
) {
52-
throw new Error('sentry source map testing');
53-
}
54-
5548
return await router.handle(request, context);
5649
} catch (e) {
5750
// Send to sentry, if it's disabled this will just noop

0 commit comments

Comments
 (0)