Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
chore: offboard Sentry and update CI deps
Browse files Browse the repository at this point in the history
  • Loading branch information
outloudvi committed Feb 5, 2024
1 parent 6387cd1 commit 412cb36
Show file tree
Hide file tree
Showing 6 changed files with 732 additions and 967 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install and check 🔍
run: |
yarn
yarn validate
npx pnpm install
npx pnpm run validate
- name: Build 🔧
run: yarn build
run: npx pnpm run build
28 changes: 10 additions & 18 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,27 @@ on:

jobs:
build-and-deploy:
if: "(!contains(github.event.commits[0].message, '[skip ci]')) && (!contains(github.event.commits[0].message, '[ci skip]'))"
if: (!contains(github.event.commits[0].message, '[skip ci]')) && (!contains(github.event.commits[0].message, '[ci skip]'))
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: '0'

- name: Install and Build 🔧
env:
ENV: "PRODUCTION"
ENV: 'PRODUCTION'
run: |
sed -i "s/NULL_RELEASE/$GITHUB_SHA/" src/main.ts
yarn
yarn build
npx pnpm install
npx pnpm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist
SINGLE_COMMIT: true
CLEAN: true

- name: Announce release and deploy to Sentry
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
run: bash utils/sentry-commit.sh
branch: gh-pages
folder: dist
single-commit: true
clean: true
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"@rollup/plugin-commonjs": "^21.0.2",
"@rollup/plugin-node-resolve": "^13.1.3",
"@rollup/plugin-typescript": "^8.3.1",
"@sentry/cli": "^1.73.2",
"@tsconfig/svelte": "^3.0.0",
"cypress": "^9.5.1",
"npm-run-all": "^4.1.5",
Expand Down Expand Up @@ -44,7 +43,6 @@
"typescript": "^4.6.2"
},
"dependencies": {
"@sentry/browser": "^6.18.2",
"aplayer": "^1.10.1",
"dayjs": "^1.10.8"
},
Expand Down
Loading

0 comments on commit 412cb36

Please sign in to comment.