Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

ci: improve download @sentry/cli (#3560)

Alex Yang47ff37619592
diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml
index b52a5fb073..ae062ce326 100644
--- a/.github/actions/setup-node/action.yml
+++ b/.github/actions/setup-node/action.yml
@@ -52,6 +52,7 @@ runs:
HUSKY: '0'
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
ELECTRON_SKIP_BINARY_DOWNLOAD: '1'
+ SENTRYCLI_SKIP_DOWNLOAD: '1'
- name: yarn install (try again)
if: ${{ steps.install.outcome == 'failure' }}
@@ -62,6 +63,7 @@ runs:
HUSKY: '0'
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
ELECTRON_SKIP_BINARY_DOWNLOAD: '1'
+ SENTRYCLI_SKIP_DOWNLOAD: '1'
- name: Get installed Playwright version
id: playwright-version
diff --git a/.github/actions/setup-sentry/action.yml b/.github/actions/setup-sentry/action.yml
new file mode 100644
index 0000000000..d38a61b30e
--- /dev/null
+++ b/.github/actions/setup-sentry/action.yml
@@ -0,0 +1,13 @@
+name: Setup @sentry/cli
+description: 'Setup @sentry/cli'
+runs:
+ using: 'composite'
+ steps:
+ - name: 'Install @sentry/cli from brew'
+ if: runner.os == 'macos'
+ shell: bash
+ run: brew install getsentry/tools/sentry-cli
+ - name: 'Install @sentry/cli from npm'
+ if: runner.os != 'macos'
+ shell: bash
+ run: sudo npm install -g @sentry/cli --unsafe-perm
diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml
index 1766ca98ff..216bab5792 100644
--- a/.github/workflows/nightly-build.yml
+++ b/.github/workflows/nightly-build.yml
@@ -50,6 +50,8 @@ jobs:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
+ - name: Setup @sentry/cli
+ uses: ./.github/actions/setup-sentry
- name: Replace Version
run: ./scripts/set-version.sh ${{ needs.set-build-version.outputs.version }}
- name: generate-assets
diff --git a/.github/workflows/release-desktop-app.yml b/.github/workflows/release-desktop-app.yml
index 4a73c00ff4..88038cce65 100644
--- a/.github/workflows/release-desktop-app.yml
+++ b/.github/workflows/release-desktop-app.yml
@@ -47,6 +47,8 @@ jobs:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
+ - name: Setup @sentry/cli
+ uses: ./.github/actions/setup-sentry
- name: Get canary version
id: get-canary-version
if: ${{ github.ref_type == 'tag' }}