Skip to content

Commit 04a90ed

Browse files
committed
fix: setup sentry in build
1 parent 73e93a3 commit 04a90ed

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,6 @@ jobs:
4848
@codedependant/semantic-release-docker
4949
env:
5050
GITHUB_TOKEN: ${{ github.token }}
51+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
52+
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
53+
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}

esbuild.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ build({
2727
authToken: SENTRY_AUTH_TOKEN,
2828
org: SENTRY_ORG,
2929
project: SENTRY_PROJECT || "apy-server",
30+
release: {
31+
name: process.env.PACKAGE_VERSION ?? "0.0.0",
32+
},
3033
}),
3134
]
3235
: undefined,

0 commit comments

Comments
 (0)