Skip to content

Commit dc43911

Browse files
chore(cli): Upgrade Sentry CLI (#293)
* chore(cli): Upgrade Sentry CLI Upgrade the Sentry CLI to the latest Upgrade the Sentry CLI to the latest version (in yarn.lock). Also, increase the version bound to ^2.46.0 in the `package.json`, as this version introduced retries for all API requests. * Update CLI typing The `SentryCliReleases` interface types the `new` method incorrectly; we need to use `SentryCli['releases']` instead. Also, since the SentryCliReleases is removed in Sentry CLI 3.0, this change makes us future compatible * recompile dist * bump also in package.json to 2.58.4
1 parent a181c12 commit dc43911

File tree

4 files changed

+56
-50
lines changed

4 files changed

+56
-50
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123612,7 +123612,7 @@ module.exports = JSON.parse('{"eN":{"H":"https://github.com/elastic/require-in-t
123612123612
/***/ ((module) => {
123613123613

123614123614
"use strict";
123615-
module.exports = JSON.parse('{"name":"action-release","version":"3.4.0","private":true,"description":"GitHub Action for creating a release on Sentry","main":"dist/index.js","scripts":{"all":"yarn run format && yarn run lint && yarn run build && yarn test","build":"ncc build src/main.ts -e @sentry/cli","format":"prettier --write **/*.ts **/*.md","format-check":"prettier --check **/*.ts **/*.md","lint":"eslint src/**/*.ts","set-docker-tag":"./scripts/set-docker-tag.sh","set-docker-tag-from-branch":"./scripts/set-docker-tag-from-branch.sh","start":"node dist/index.js","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/getsentry/action-release.git"},"keywords":["actions","sentry","release"],"author":"Sentry","license":"MIT","dependencies":{"@actions/core":"^1.11.1","@sentry/node":"^8.54.0","@sentry/cli":"^2.41.1"},"devDependencies":{"@types/jest":"^29.5.6","@types/node":"^20.8.9","@typescript-eslint/parser":"^6.9.0","@vercel/ncc":"^0.38.1","eslint":"^8.52.0","eslint-plugin-github":"^4.10.1","eslint-plugin-jest":"^27.4.3","jest":"^29.7.0","jest-circus":"^29.7.0","js-yaml":"^4.1.0","prettier":"^3.0.3","ts-jest":"^29.1.1","typescript":"^5.2.2"},"volta":{"node":"20.19.2","yarn":"1.22.4"}}');
123615+
module.exports = JSON.parse('{"name":"action-release","version":"3.4.0","private":true,"description":"GitHub Action for creating a release on Sentry","main":"dist/index.js","scripts":{"all":"yarn run format && yarn run lint && yarn run build && yarn test","build":"ncc build src/main.ts -e @sentry/cli","format":"prettier --write **/*.ts **/*.md","format-check":"prettier --check **/*.ts **/*.md","lint":"eslint src/**/*.ts","set-docker-tag":"./scripts/set-docker-tag.sh","set-docker-tag-from-branch":"./scripts/set-docker-tag-from-branch.sh","start":"node dist/index.js","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/getsentry/action-release.git"},"keywords":["actions","sentry","release"],"author":"Sentry","license":"MIT","dependencies":{"@actions/core":"^1.11.1","@sentry/node":"^8.54.0","@sentry/cli":"^2.58.4"},"devDependencies":{"@types/jest":"^29.5.6","@types/node":"^20.8.9","@typescript-eslint/parser":"^6.9.0","@vercel/ncc":"^0.38.1","eslint":"^8.52.0","eslint-plugin-github":"^4.10.1","eslint-plugin-jest":"^27.4.3","jest":"^29.7.0","jest-circus":"^29.7.0","js-yaml":"^4.1.0","prettier":"^3.0.3","ts-jest":"^29.1.1","typescript":"^5.2.2"},"volta":{"node":"20.19.2","yarn":"1.22.4"}}');
123616123616

123617123617
/***/ })
123618123618

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"dependencies": {
3030
"@actions/core": "^1.11.1",
3131
"@sentry/node": "^8.54.0",
32-
"@sentry/cli": "^2.41.1"
32+
"@sentry/cli": "^2.58.4"
3333
},
3434
"devDependencies": {
3535
"@types/jest": "^29.5.6",

src/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getTraceData } from '@sentry/node';
2-
import SentryCli, { SentryCliReleases } from '@sentry/cli';
2+
import SentryCli from '@sentry/cli';
33
// @ts-ignore
44
import { version } from '../package.json';
55

@@ -8,7 +8,7 @@ import { version } from '../package.json';
88
*
99
* When the `MOCK` environment variable is set, stub out network calls.
1010
*/
11-
export const getCLI = (): SentryCliReleases => {
11+
export const getCLI = (): SentryCli['releases'] => {
1212
// Set the User-Agent string.
1313
process.env['SENTRY_PIPELINE'] = `github-action-release/${version}`;
1414

yarn.lock

Lines changed: 52 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,59 +1006,65 @@
10061006
"@opentelemetry/instrumentation" "^0.49 || ^0.50 || ^0.51 || ^0.52.0 || ^0.53.0"
10071007
"@opentelemetry/sdk-trace-base" "^1.22"
10081008

1009-
1010-
version "2.41.1"
1011-
resolved "https://registry.yarnpkg.com/@sentry/cli-darwin/-/cli-darwin-2.41.1.tgz#ca7e12bf1ad59bc2df35868ae98abc8869108efa"
1012-
integrity sha512-7pS3pu/SuhE6jOn3wptstAg6B5nUP878O6s+2svT7b5fKNfYUi/6NPK6dAveh2Ca0rwVq40TO4YFJabWMgTpdQ==
1013-
1014-
1015-
version "2.41.1"
1016-
resolved "https://registry.yarnpkg.com/@sentry/cli-linux-arm64/-/cli-linux-arm64-2.41.1.tgz#948e8af8290418b1562db3531db08e69e39d74bb"
1017-
integrity sha512-EzYCEnnENBnS5kpNW+2dBcrPZn1MVfywh2joGVQZTpmgDL5YFJ59VOd+K0XuEwqgFI8BSNI14KXZ75s4DD1/Vw==
1018-
1019-
1020-
version "2.41.1"
1021-
resolved "https://registry.yarnpkg.com/@sentry/cli-linux-arm/-/cli-linux-arm-2.41.1.tgz#1e5fa971ae8dfb3ea5564c8503b4e635ae6aed8a"
1022-
integrity sha512-wNUvquD6qjOCczvuBGf9OiD29nuQ6yf8zzfyPJa5Bdx1QXuteKsKb6HBrMwuIR3liyuu0duzHd+H/+p1n541Hg==
1023-
1024-
1025-
version "2.41.1"
1026-
resolved "https://registry.yarnpkg.com/@sentry/cli-linux-i686/-/cli-linux-i686-2.41.1.tgz#3f01aff314f2ad8fd761f3e6e807a5ec09ae4eb4"
1027-
integrity sha512-urpQCWrdYnSAsZY3udttuMV88wTJzKZL10xsrp7sjD/Hd+O6qSLVLkxebIlxts70jMLLFHYrQ2bkRg5kKuX6Fg==
1028-
1029-
1030-
version "2.41.1"
1031-
resolved "https://registry.yarnpkg.com/@sentry/cli-linux-x64/-/cli-linux-x64-2.41.1.tgz#30dbf966a4b4c1721ffccd901dfcb6f967db073d"
1032-
integrity sha512-ZqpYwHXAaK4MMEFlyaLYr6mJTmpy9qP6n30jGhLTW7kHKS3s6GPLCSlNmIfeClrInEt0963fM633ZRnXa04VPw==
1033-
1034-
1035-
version "2.41.1"
1036-
resolved "https://registry.yarnpkg.com/@sentry/cli-win32-i686/-/cli-win32-i686-2.41.1.tgz#f88eeb5d2d4ee46c38d8616ae1eb484108ea71c2"
1037-
integrity sha512-AuRimCeVsx99DIOr9cwdYBHk39tlmAuPDdy2r16iNzY0InXs4xOys4gGzM7N4vlFQvFkzuc778Su0HkfasgprA==
1038-
1039-
1040-
version "2.41.1"
1041-
resolved "https://registry.yarnpkg.com/@sentry/cli-win32-x64/-/cli-win32-x64-2.41.1.tgz#eefd95a2aa184adb464334e265b55a9142070f6f"
1042-
integrity sha512-6JcPvXGye61+wPp0xdzfc2YLE/Dcud8JdaK8VxLM3b/8+Em7E+UyliDu3uF8+YGUqizY5JYTd3fs17DC8DZhLw==
1043-
1044-
"@sentry/cli@^2.41.1":
1045-
version "2.41.1"
1046-
resolved "https://registry.yarnpkg.com/@sentry/cli/-/cli-2.41.1.tgz#a9467ca3ff4acfcdedec1565c9ff726b93758d29"
1047-
integrity sha512-0GVmDiTV7R1492wkVY4bGcfC0fSmRmQjuxaaPI8CIV9B2VP9pBVCUizi1mevXaaE4I3fM60LI+XYrKFEneuVog==
1009+
1010+
version "2.58.4"
1011+
resolved "https://registry.yarnpkg.com/@sentry/cli-darwin/-/cli-darwin-2.58.4.tgz#5e3005c1f845acac243e8dcb23bef17337924768"
1012+
integrity sha512-kbTD+P4X8O+nsNwPxCywtj3q22ecyRHWff98rdcmtRrvwz8CKi/T4Jxn/fnn2i4VEchy08OWBuZAqaA5Kh2hRQ==
1013+
1014+
1015+
version "2.58.4"
1016+
resolved "https://registry.yarnpkg.com/@sentry/cli-linux-arm64/-/cli-linux-arm64-2.58.4.tgz#69da57656fda863f255d92123c3a3437e470408e"
1017+
integrity sha512-0g0KwsOozkLtzN8/0+oMZoOuQ0o7W6O+hx+ydVU1bktaMGKEJLMAWxOQNjsh1TcBbNIXVOKM/I8l0ROhaAb8Ig==
1018+
1019+
1020+
version "2.58.4"
1021+
resolved "https://registry.yarnpkg.com/@sentry/cli-linux-arm/-/cli-linux-arm-2.58.4.tgz#869ddab30f0dcebc0e61cff2f3ff47dcd40f8abe"
1022+
integrity sha512-rdQ8beTwnN48hv7iV7e7ZKucPec5NJkRdrrycMJMZlzGBPi56LqnclgsHySJ6Kfq506A2MNuQnKGaf/sBC9REA==
1023+
1024+
1025+
version "2.58.4"
1026+
resolved "https://registry.yarnpkg.com/@sentry/cli-linux-i686/-/cli-linux-i686-2.58.4.tgz#e30ca6b897147b3fb7b2e8684b139183d55e21c6"
1027+
integrity sha512-NseoIQAFtkziHyjZNPTu1Gm1opeQHt7Wm1LbLrGWVIRvUOzlslO9/8i6wETUZ6TjlQxBVRgd3Q0lRBG2A8rFYA==
1028+
1029+
1030+
version "2.58.4"
1031+
resolved "https://registry.yarnpkg.com/@sentry/cli-linux-x64/-/cli-linux-x64-2.58.4.tgz#f667e1fcaf0860f15401af8e0ee72f5013d84458"
1032+
integrity sha512-d3Arz+OO/wJYTqCYlSN3Ktm+W8rynQ/IMtSZLK8nu0ryh5mJOh+9XlXY6oDXw4YlsM8qCRrNquR8iEI1Y/IH+Q==
1033+
1034+
1035+
version "2.58.4"
1036+
resolved "https://registry.yarnpkg.com/@sentry/cli-win32-arm64/-/cli-win32-arm64-2.58.4.tgz#f612c5788954e2a97b6626e9e46fa9a41cb049c1"
1037+
integrity sha512-bqYrF43+jXdDBh0f8HIJU3tbvlOFtGyRjHB8AoRuMQv9TEDUfENZyCelhdjA+KwDKYl48R1Yasb4EHNzsoO83w==
1038+
1039+
1040+
version "2.58.4"
1041+
resolved "https://registry.yarnpkg.com/@sentry/cli-win32-i686/-/cli-win32-i686-2.58.4.tgz#5611c05499f1b959d23e37650d0621d299c49cfc"
1042+
integrity sha512-3triFD6jyvhVcXOmGyttf+deKZcC1tURdhnmDUIBkiDPJKGT/N5xa4qAtHJlAB/h8L9jgYih9bvJnvvFVM7yug==
1043+
1044+
1045+
version "2.58.4"
1046+
resolved "https://registry.yarnpkg.com/@sentry/cli-win32-x64/-/cli-win32-x64-2.58.4.tgz#3290c59399579e8d484c97246cfa720171241061"
1047+
integrity sha512-cSzN4PjM1RsCZ4pxMjI0VI7yNCkxiJ5jmWncyiwHXGiXrV1eXYdQ3n1LhUYLZ91CafyprR0OhDcE+RVZ26Qb5w==
1048+
1049+
"@sentry/cli@^2.58.4":
1050+
version "2.58.4"
1051+
resolved "https://registry.yarnpkg.com/@sentry/cli/-/cli-2.58.4.tgz#eb8792600cdf956cc4fe2bf51380ea1682327411"
1052+
integrity sha512-ArDrpuS8JtDYEvwGleVE+FgR+qHaOp77IgdGSacz6SZy6Lv90uX0Nu4UrHCQJz8/xwIcNxSqnN22lq0dH4IqTg==
10481053
dependencies:
10491054
https-proxy-agent "^5.0.0"
10501055
node-fetch "^2.6.7"
10511056
progress "^2.0.3"
10521057
proxy-from-env "^1.1.0"
10531058
which "^2.0.2"
10541059
optionalDependencies:
1055-
"@sentry/cli-darwin" "2.41.1"
1056-
"@sentry/cli-linux-arm" "2.41.1"
1057-
"@sentry/cli-linux-arm64" "2.41.1"
1058-
"@sentry/cli-linux-i686" "2.41.1"
1059-
"@sentry/cli-linux-x64" "2.41.1"
1060-
"@sentry/cli-win32-i686" "2.41.1"
1061-
"@sentry/cli-win32-x64" "2.41.1"
1060+
"@sentry/cli-darwin" "2.58.4"
1061+
"@sentry/cli-linux-arm" "2.58.4"
1062+
"@sentry/cli-linux-arm64" "2.58.4"
1063+
"@sentry/cli-linux-i686" "2.58.4"
1064+
"@sentry/cli-linux-x64" "2.58.4"
1065+
"@sentry/cli-win32-arm64" "2.58.4"
1066+
"@sentry/cli-win32-i686" "2.58.4"
1067+
"@sentry/cli-win32-x64" "2.58.4"
10621068

10631069
10641070
version "8.54.0"

0 commit comments

Comments
 (0)