Skip to content

Commit f717155

Browse files
authored
FEAT: do not throw error if previous release was not found (#11)
* CHORE: upgrade sentry-cli Refs: #10 * FEAT: don't throw an error if release is not found Refs: #10
1 parent 5e2de4d commit f717155

File tree

4 files changed

+158
-19
lines changed

4 files changed

+158
-19
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = {
4141
this.sentryCliExec('releases', `new ${releaseName}`);
4242

4343
this.log('SENTRY: Assigning commits...');
44-
this.sentryCliExec('releases', `set-commits --auto ${releaseName}`);
44+
this.sentryCliExec('releases', `set-commits ${releaseName} --auto --ignore-missing`);
4545

4646
this.log('SENTRY: Uploading source maps...');
4747
this.sentryCliExec('releases', `files ${releaseName} upload-sourcemaps --rewrite ${assetsDir} ${urlPrefix}`);

package-lock.json

Lines changed: 155 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"ember-cli-deploy": "^1.0.2"
3838
},
3939
"dependencies": {
40-
"@sentry/cli": "^1.61.0",
40+
"@sentry/cli": "^1.65.0",
4141
"ember-cli-deploy-plugin": "^0.2.9",
4242
"ember-cli-deploy-revision-data": "^1.0.0"
4343
},

tests/unit/index-nodetest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ describe('sentry-cli', function () {
184184
'node_modules',
185185
'.bin',
186186
'sentry-cli'
187-
)} --auth-token my-auth-token releases --org my-org --project my-project set-commits --auto my-project@v1.0.0@1234567`
187+
)} --auth-token my-auth-token releases --org my-org --project my-project set-commits my-project@v1.0.0@1234567 --auto --ignore-missing`
188188
);
189189
});
190190

0 commit comments

Comments
 (0)