fix(deps): update sentry to ^10.69.0 #560
This file contains hidden or 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
| name: Preview | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, closed] | |
| concurrency: | |
| group: preview-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| preview-check: | |
| if: github.event.action != 'closed' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| deployments: write | |
| pull-requests: write | |
| name: Preview Check | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.node-version' | |
| cache: 'pnpm' | |
| - name: Cache Turbo | |
| uses: actions/cache@v5 | |
| with: | |
| path: .turbo/cache | |
| key: turbo-${{ runner.os }}-${{ github.sha }} | |
| restore-keys: | | |
| turbo-${{ runner.os }}- | |
| - name: Populate Bundle Information | |
| shell: bash | |
| run: | | |
| echo "VITE_GIT_COMMIT=${{ github.event.pull_request.head.sha }}" >> ${GITHUB_ENV} | |
| echo "VITE_VERSION=pr-${{ github.event.pull_request.number }}" >> ${GITHUB_ENV} | |
| echo "VITE_BUILD_NUMBER=${{ github.run_number }}" >> ${GITHUB_ENV} | |
| echo "VITE_BUILD_TIME=$(date --utc +%FT%TZ)" >> ${GITHUB_ENV} | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build | |
| shell: bash | |
| run: pnpm turbo run build --filter=@gekichumai/dxrating-web... | |
| env: | |
| SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
| VITE_BACKEND_URL: https://miruku.dxrating.net | |
| VITE_BETTER_AUTH_URL: https://miruku.dxrating.net | |
| - name: Skip preview deployment for forked PRs | |
| if: github.event.pull_request.head.repo.full_name != github.repository | |
| run: echo "Built successfully. Preview deployment is skipped for forked pull requests." | |
| - name: Deploy to Cloudflare Workers | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| id: deploy | |
| run: | | |
| set -euo pipefail | |
| DEPLOY_OUTPUT=$(pnpm --filter @gekichumai/dxrating-web exec wrangler deploy \ | |
| --config=dist/server/wrangler.json \ | |
| --name="dxrating-pr-${{ github.event.pull_request.number }}" 2>&1 | tee /dev/stderr) | |
| DEPLOYMENT_URL=$(echo "$DEPLOY_OUTPUT" | grep -Eo 'https://[^[:space:]]+\.workers\.dev' | tail -1) | |
| test -n "$DEPLOYMENT_URL" | |
| echo "url=$DEPLOYMENT_URL" >> $GITHUB_OUTPUT | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| - name: Comment PR with preview URL | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| uses: marocchino/sticky-pull-request-comment@v3 | |
| with: | |
| header: preview-deploy | |
| message: | | |
| ### Preview Deployment | |
| | Name | Link | | |
| |------|------| | |
| | Latest commit | ${{ github.event.pull_request.head.sha }} | | |
| | Preview URL | ${{ steps.deploy.outputs.url }} | | |
| > Built and deployed to Cloudflare Workers. | |
| delete-preview: | |
| if: github.event.action == 'closed' && github.event.pull_request.head.repo.full_name == github.repository | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| name: Delete Preview | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.node-version' | |
| - name: Delete Cloudflare Worker preview | |
| run: | | |
| pnpm dlx wrangler delete --name="dxrating-pr-${{ github.event.pull_request.number }}" --force || \ | |
| echo "::warning::Preview Worker dxrating-pr-${{ github.event.pull_request.number }} was not deleted. It may not exist." | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} |