Skip to content

Commit

Permalink
feat: setup send sourcemaps for sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
1natsu172 committed Jun 28, 2024
1 parent d42b621 commit 187334f
Show file tree
Hide file tree
Showing 6 changed files with 308 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
tags:
- v*

env:
# Use as process.env.SENTRY_AUTH_TOKEN with sentry-vite-plugin
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

jobs:
delivery:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
workflow_dispatch:
pull_request:

env:
# Use as process.env.SENTRY_AUTH_TOKEN with sentry-vite-plugin
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

jobs:
test:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ stats-*.json
web-ext.config.ts
playwright-report
test-results

# Sentry Config File
.env.sentry-build-plugin
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"@mantine/hooks": "^7.10.2",
"@sentry/browser": "^8.11.0",
"@sentry/react": "^8.12.0",
"@sentry/vite-plugin": "^2.20.1",
"@tabler/icons-react": "^3.6.0",
"@tanstack/react-query": "^5.45.1",
"@webext-core/messaging": "^1.4.0",
Expand Down
Loading

0 comments on commit 187334f

Please sign in to comment.