Skip to content

fix(deps): update dependency @sentry/nextjs to v8.26.0 #972

fix(deps): update dependency @sentry/nextjs to v8.26.0

fix(deps): update dependency @sentry/nextjs to v8.26.0 #972

Workflow file for this run

name: Build and Deploy Web - Preview
on:
pull_request:
branches:
- master
env:
EDGIO_ENV: preview
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN}}
jobs:
build-deploy-web:
name: Deploy Web Preview
environment:
name: preview
url: https://coh-stats-coh3-stats-${{ env.BRANCH_NAME }}.alt.free.layer0-perma.link
concurrency:
group: preview-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
if: github.repository == 'cohstats/coh3-stats'
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@master
with:
node-version: "20.x"
- name: Cache node modules
uses: actions/cache@v4
env:
cache-name: cache-node-modules-v2
with:
path: |
node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Deps
run: yarn --prefer-offline --frozen-lockfile install
- name: Disable Vercel telemetry
run: yarn next telemetry disable
- name: Create Sentry release
uses: getsentry/action-release@master
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: coh-stats
SENTRY_PROJECT: coh3-stats-web
with:
environment: ${{ env.EDGIO_ENV }}
ignore_empty: true
ignore_missing: true
- name: Run the build
run: yarn build
- name: Deploy to Edgio hosting
env:
DEPLOY_TOKEN: ${{ secrets.EDGIO_V7_DEPLOY_TOKEN}}
run: |
npx edgio deploy --skip-build --property=coh3-stats --organization=coh-stats --environment=$EDGIO_ENV --token $DEPLOY_TOKEN --branch=$BRANCH_NAME
npx edgio cache-clear --property=coh3-stats --organization=coh-stats -e $EDGIO_ENV --token $DEPLOY_TOKEN --path=/
- name: Replace Slashes in Branch Name
run: echo "LINK_SAFE_BRANCH_NAME=$(echo $BRANCH_NAME | sed 's|/|-|g' | sed 's|\.|-|g')" >> $GITHUB_ENV
- uses: jwalton/gh-find-current-pr@v1
id: finder
- name: Publish Preview Link
uses: marocchino/[email protected]
with:
number: ${{ steps.finder.outputs.pr }}
header: preview
message: |
🌐 Branch deployed as preview to:
https://coh-stats-coh3-stats-${{ env.LINK_SAFE_BRANCH_NAME }}.alt.free.edgio-perma.link
lighthouse:
name: Lighthouse report
runs-on: ubuntu-latest
needs: build-deploy-web
steps:
- name: Fireup the preview enviroment with request
run: |
curl -H 'Content-Type: application/json' -H 'lighthouse: report' https://preview.coh3stats.com
- run: mkdir -p ${{ github.workspace }}/tmp/artifacts
- name: Lighthouse
uses: foo-software/lighthouse-check-action@master
with:
outputDirectory: ${{ github.workspace }}/tmp/artifacts
urls: https://preview.coh3stats.com
extraHeaders: '{ "lighthouse": "report" }'
prCommentEnabled: true
device: all
gitHubAccessToken: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
name: Lighthouse reports
path: ${{ github.workspace }}/tmp/artifacts