-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
67 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Build and Upload Source Maps | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16" # Specify your Node.js version | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Build project | ||
run: npm run build | ||
|
||
- name: Install Sentry CLI | ||
run: npm install -g @sentry/cli | ||
|
||
- name: Inject id | ||
run: sentry-cli sourcemaps inject dist | ||
|
||
- name: Upload source maps to Sentry | ||
env: | ||
SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | ||
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
SENTRY_URL: https://sentry.io/ # Change if you're using a self-hosted Sentry instance | ||
run: | | ||
sentry-cli sourcemaps upload ./dist -o $SENTRY_ORG -p $SENTRY_PROJECT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
declare global { | ||
namespace NodeJS { | ||
interface Process { | ||
isBun?: boolean; | ||
} | ||
interface ProcessEnv { | ||
TOKEN: string; | ||
NODE_ENV: "development" | "production"; | ||
MONGO_CONNECTION: string; | ||
SENTRY_DSN: string; | ||
AUTH_TOKEN: string; | ||
TOPGG_TOKEN?: string; | ||
GUILD?: string; | ||
ERROR_LOGS?: string; | ||
READY_LOGS?: string; | ||
SUGGESTION?: string; | ||
CONTACT_US?: string; | ||
COMMANDS_USED?: string; | ||
BUG_REPORTS?: string; | ||
} | ||
} | ||
} |