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
5 changes: 0 additions & 5 deletions .circleci/src/commands/@mobile-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ mobile-prepare-ios:
command: |
cd packages/mobile/ios
bundle exec pod install
- run:
name: Install Sentry CLI
command: |
curl -sL https://sentry.io/get-cli/ | bash
echo export SENTRY_BINARY=/usr/local/bin/sentry-cli >> "$BASH_ENV"
- run:
name: Build dependencies
no_output_timeout: 60m
Expand Down
24 changes: 0 additions & 24 deletions .circleci/src/jobs/@web-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,30 +143,6 @@ web-deploy-production-cloudflare:
copy-robots: true
# - web-deploy-sourcemaps-s3

web-deploy-sentry-sourcemaps:
working_directory: ~/apps
docker:
- image: cimg/node:20.19
steps:
- checkout
- attach_workspace:
at: ./
- run:
name: cut-sentry-release
command: |
cd packages/web
../../node_modules/.bin/sentry-cli --auth-token ${SENTRY_AUTH_TOKEN} releases --org audius --project audius-client new ${CIRCLE_SHA1}
- run:
name: upload-sourcemaps
command: |
cd packages/web
../../node_modules/.bin/sentry-cli --auth-token ${SENTRY_AUTH_TOKEN} releases --org audius --project audius-client files ${CIRCLE_SHA1} upload-sourcemaps --no-rewrite build-production/static/js
- run:
name: finalize-release
command: |
cd packages/web
../../node_modules/.bin/sentry-cli --auth-token ${SENTRY_AUTH_TOKEN} releases --org audius --project audius-client finalize ${CIRCLE_SHA1}

web-dist-mac-production:
working_directory: ~/apps
# run on macos so dmg can be created and signed.
Expand Down
8 changes: 0 additions & 8 deletions .circleci/src/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,6 @@ jobs:
filters:
branches:
only: /^main$/
- web-deploy-sentry-sourcemaps:
context: Audius Client
requires:
- web-hold-production
filters:
branches:
only: /^main$/

# Distribute production desktop binaries on main.
- web-hold-dist-mac-production:
type: approval
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -501,11 +501,6 @@ jobs:
cd packages/mobile/ios
RCT_NEW_ARCH_ENABLED=0 bundle exec pod install

- name: Install Sentry CLI
run: |
curl -sL https://sentry.io/get-cli/ | bash
echo "$HOME/.sentry-cli/bin" >> $GITHUB_PATH

- name: Build dependencies
timeout-minutes: 60
run: npx turbo run build --filter=@audius/mobile
Expand Down Expand Up @@ -559,9 +554,6 @@ jobs:
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
run: |
cd packages/mobile/ios
bundle exec fastlane build_and_upload bundle_id:co.audius.audiusmusic.releasecandidate
Expand Down Expand Up @@ -888,11 +880,6 @@ jobs:
cd packages/mobile/ios
RCT_NEW_ARCH_ENABLED=0 bundle exec pod install

- name: Install Sentry CLI
run: |
curl -sL https://sentry.io/get-cli/ | bash
echo "$HOME/.sentry-cli/bin" >> $GITHUB_PATH

- name: Build dependencies
timeout-minutes: 60
run: npx turbo run build --filter=@audius/mobile
Expand Down Expand Up @@ -946,9 +933,6 @@ jobs:
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
run: |
cd packages/mobile/ios
bundle exec fastlane build_and_upload bundle_id:co.audius.audiusmusic
Expand Down
89 changes: 0 additions & 89 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -837,92 +837,3 @@ jobs:
job_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
json_content="{ \"blocks\": [{ \"type\": \"section\", \"text\": { \"type\": \"mrkdwn\", \"text\": \"Deployed production <${job_url}|v${deploying_version}> to web \n\" } }]}"
curl -f -X POST -H 'Content-type: application/json' --data "$json_content" $SLACK_WEBHOOK

web-deploy-sentry-sourcemaps:
name: Web Deploy Sentry Sourcemaps
runs-on: ubuntu-latest
needs: [web-build, web-check-ssr-bundlesize]
if: github.ref == 'refs/heads/main'
environment:
name: production
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Create concatenated patch file
id: patch-file
run: |
ls -d -- packages/*/patches/*.patch 2>/dev/null | xargs cat > combined-patch-file.txt || touch combined-patch-file.txt
echo "patch_checksum=$(sha256sum combined-patch-file.txt | cut -d' ' -f1)" >> $GITHUB_OUTPUT

- name: Cache node modules
id: cache-node-modules
uses: actions/cache@v4
with:
path: |
node_modules
packages/web/node_modules
packages/harmony/node_modules
packages/common/node_modules
packages/libs/node_modules
packages/sdk/node_modules
key: npm-cache-${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('package-lock.json') }}-${{ steps.patch-file.outputs.patch_checksum }}
restore-keys: |
npm-cache-${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('package-lock.json') }}-

- name: Install dependencies (if cache miss)
if: steps.cache-node-modules.outputs.cache-hit != 'true'
env:
CI: true
SKIP_POD_INSTALL: true
SKIP_ANDROID_INSTALL: true
ANDROID_HOME: /tmp/android-sdk-dummy
NODE_OPTIONS: --max-old-space-size=8192
run: |
mkdir -p /tmp/android-sdk-dummy
npm ci --prefer-offline

- name: Run postinstall (if cache hit)
if: steps.cache-node-modules.outputs.cache-hit == 'true'
env:
CI: true
SKIP_POD_INSTALL: true
SKIP_ANDROID_INSTALL: true
ANDROID_HOME: /tmp/android-sdk-dummy
NODE_OPTIONS: --max-old-space-size=8192
run: |
mkdir -p /tmp/android-sdk-dummy
npm run postinstall

- name: Download builds
uses: actions/download-artifact@v4
with:
name: builds
path: packages/web

- name: Cut Sentry release
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
run: |
cd packages/web
../../node_modules/.bin/sentry-cli --auth-token ${SENTRY_AUTH_TOKEN} releases --org audius --project audius-client new ${{ github.sha }}

- name: Upload sourcemaps
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
run: |
cd packages/web
../../node_modules/.bin/sentry-cli --auth-token ${SENTRY_AUTH_TOKEN} sourcemaps upload --org audius --project audius-client --release ${{ github.sha }} build-production/static/js

- name: Finalize release
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
run: |
cd packages/web
../../node_modules/.bin/sentry-cli --auth-token ${SENTRY_AUTH_TOKEN} releases --org audius --project audius-client finalize ${{ github.sha }}

Loading
Loading