Skip to content

fix: downgrade @sentry/browser to v5.30.0 (#4836) backport #2068

fix: downgrade @sentry/browser to v5.30.0 (#4836) backport

fix: downgrade @sentry/browser to v5.30.0 (#4836) backport #2068

Workflow file for this run

name: Upload
on:
pull_request_target:
types: [closed]
jobs:
upload-build:
if: github.event.pull_request.merged == true
name: Upload build artifacts
runs-on: ubuntu-22.04
env:
PACKAGE_NAME: maas-ui-${{ github.sha }}.tar.gz
REACT_APP_GIT_SHA: ${{ github.sha }}
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Get branch name
uses: nelonoel/[email protected]
- name: Restore node_modules
id: yarn-cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: CYPRESS_INSTALL_BINARY=0 yarn install
- name: Build
run: REACT_APP_GIT_SHA=${{env.REACT_APP_GIT_SHA}} yarn build
env:
CI: false
- name: Compress
run: cd build && tar -czf ../${{env.PACKAGE_NAME}} ./ && ls -hs ../${{env.PACKAGE_NAME}}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install deps
run: pip install requests
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Upload to assets server
run: python scripts/upload-assets.py
env:
UPLOAD_ASSETS_API_TOKEN: ${{secrets.UPLOAD_ASSETS_API_TOKEN}}
ASSET_FILE_PATH: ${{env.PACKAGE_NAME}}
ASSET_URL_PATH: ${{env.PACKAGE_NAME}}
ASSET_TAGS: "auto-upload"
- name: Create issue on failure
if: failure()
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
RUN_ID: ${{ github.run_id }}
with:
filename: .github/ISSUE_TEMPLATE/upload-failure.md
update_existing: true