Repository navigation
Expand file tree
/
Copy path.craft.yml
More file actions
100 lines (96 loc) · 3.81 KB
/
Copy path.craft.yml
File metadata and controls
100 lines (96 loc) · 3.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
minVersion: '2.33.0'
workspaces:
packages/cli:
changelog:
policy: auto
# The CLI release also ships the documentation workspace.
includePaths:
- apps/cli-docs
versioning:
policy: auto
preReleaseCommand: bash -c 'cd packages/cli && node --experimental-strip-types script/bump-version.ts --pre'
postReleaseCommand: bash -c 'cd packages/cli && node --experimental-strip-types script/bump-version.ts --post'
releaseBranchPrefix: release/cli
artifactProvider:
name: github
config:
artifacts:
Build:
- '/^sentry-.*$/'
- 'npm-package'
- 'vercel'
targets:
- name: npm
includeNames: '/^sentry-\d.*\.tgz$/'
- name: github
tagPrefix: 'cli@'
- name: vercel
projectId: prj_wVkOnIwI3eIQbGD1Gw7qS1MqFFIK
- name: registry
apps:
'app:sentry':
name: 'Sentry CLI'
packageUrl: 'https://www.npmjs.com/package/sentry'
mainDocsUrl: 'https://cli.sentry.dev'
urlTemplate: 'https://github.com/getsentry/toolkit/releases/download/cli@{{version}}/{{file}}'
includeNames: '/^sentry-.*\.gz$/'
checksums:
- algorithm: sha256
format: hex
- name: brew
tap: getsentry/tools
formula: sentry
path: Formula
includeNames: '/^sentry-(darwin|linux)-(arm64|x64)\.gz$/'
template: |
class Sentry < Formula
desc "Sentry command-line tool for error monitoring and debugging"
homepage "https://cli.sentry.dev"
version "{{version}}"
license "FSL-1.1-Apache-2.0"
if OS.mac?
if Hardware::CPU.arm?
url "https://github.com/getsentry/toolkit/releases/download/cli@{{version}}/sentry-darwin-arm64.gz"
sha256 "{{checksums.sentry-darwin-arm64__gz}}"
elsif Hardware::CPU.intel?
url "https://github.com/getsentry/toolkit/releases/download/cli@{{version}}/sentry-darwin-x64.gz"
sha256 "{{checksums.sentry-darwin-x64__gz}}"
else
raise "Unsupported macOS CPU architecture: #{Hardware::CPU.type}"
end
elsif OS.linux?
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/getsentry/toolkit/releases/download/cli@{{version}}/sentry-linux-arm64.gz"
sha256 "{{checksums.sentry-linux-arm64__gz}}"
elsif Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/getsentry/toolkit/releases/download/cli@{{version}}/sentry-linux-x64.gz"
sha256 "{{checksums.sentry-linux-x64__gz}}"
else
raise "Unsupported Linux CPU architecture: #{Hardware::CPU.type} (only 64-bit arm and x86_64 are supported)"
end
else
raise "Unsupported operating system"
end
def install
bin.install Dir["sentry-*"].first => "sentry"
end
def post_install
system bin/"sentry", "cli", "setup", "--method", "brew", "--no-modify-path"
end
test do
assert_match version.to_s, shell_output("#{bin}/sentry --version").chomp
end
end
packages/mcp-server:
changelogPolicy: none
preReleaseCommand: >-
bash -c 'set -e; for package in packages/mcp-* packages/smoke-tests; do
(cd "$package" && npm version "$CRAFT_NEW_VERSION" --no-git-tag-version);
done'
releaseBranchPrefix: release/mcp
targets:
- name: github
includeNames: '/^sentry-mcp-server-\d.*\.tgz$/'
- name: npm
id: '@sentry/mcp-server'
includeNames: '/^sentry-mcp-server-\d.*\.tgz$/'