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

This commit is contained in:
Alex Yang
2023-08-03 10:26:30 -07:00
committed by GitHub
parent 33cc9d25a1
commit 47ff376195
4 changed files with 19 additions and 0 deletions

13
.github/actions/setup-sentry/action.yml vendored Normal file
View File

@@ -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