Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
run: bun install --frozen-lockfile

- name: Build with sourcemaps
run: bun build --sourcemap=external ./src/index.ts --outfile ./dist/index.js
run: bun build --target=bun --sourcemap=external ./src/index.ts --outdir ./dist

- name: Upload sourcemaps to Sentry
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
run: |
npx @sentry/cli sourcemaps inject ./dist
npx @sentry/cli sourcemaps upload --release=${{ github.sha }} ./dist
bunx @sentry/cli sourcemaps inject ./dist
bunx @sentry/cli sourcemaps upload --release=${{ github.sha }} ./dist

- name: Install cloudflared
run: ./.github/scripts/install-cloudflared.sh
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ jobs:
run: bun install --frozen-lockfile

- name: Build with sourcemaps
run: bun build --sourcemap=external ./src/index.ts --outfile ./dist/index.js
run: bun build --target=bun --sourcemap=external ./src/index.ts --outdir ./dist

- name: Upload sourcemaps to Sentry
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
run: |
npx @sentry/cli sourcemaps inject ./dist
npx @sentry/cli sourcemaps upload --release=${{ github.sha }} ./dist
bunx @sentry/cli sourcemaps inject ./dist
bunx @sentry/cli sourcemaps upload --release=${{ github.sha }} ./dist

- name: Install cloudflared
run: ./.github/scripts/install-cloudflared.sh
Expand Down
Loading