ember-cli-deploy-sentry-cli
raw JSON → 3.1.0 verified Sat Apr 25 auth: no javascript
Ember-cli-deploy plugin for Sentry integration — uploads sourcemaps, creates releases, and associates commits during deployment. Current version 3.1.0 supports Node 12+ and requires ember-cli-deploy ^1.0.2 as a peer dependency. The plugin runs sentry-cli under the hood and offers options for custom Sentry servers, URL prefix, and revision type. It has a stable release cadence with recent fixes for mono-repo setups and re-deploy with empty changesets.
Common errors
error You do not have permission to perform this action ↓
cause Sentry auth token missing required scopes or invalid.
fix
Check that SENTRY_AUTH_TOKEN is set and has scopes: org:read, project:releases. See https://sentry.io/settings/account/api/auth-tokens/
error Could not determine any commits to be associated automatically. ↓
cause Sentry project not linked to a repository or git context not available.
fix
Connect your repository in Sentry project settings (Releases -> Repositories). Ensure deployment runs in a git repository.
error sentry-cli: error: option '--auth-token' requires a value ↓
cause authToken not provided in config or environment variable not set.
fix
Set authToken in deploy.js config or set SENTRY_AUTH_TOKEN environment variable.
Warnings
gotcha You do not have permission to perform this action ↓
fix Ensure your Sentry auth token has at least `org:read` and `project:releases` scopes. Generate a token at https://sentry.io/settings/account/api/auth-tokens/
gotcha Could not determine any commits to be associated automatically. ↓
fix Connect your repository in Sentry project settings (under Releases) to associate commits. Also ensure git history is available during deployment.
gotcha Your app's issues are not correctly related with app deploy version ↓
fix Set `modulePrefix` in config/environment.js to match `appName` in deploy.js, and use `version-commit` as revision type in deploy.js for consistent release naming.
Deprecated Environment variables like `SENTRY_ORG`, `SENTRY_PROJECT` are deprecated in favor of config options `orgName`, `appName`. ↓
fix Use `orgName` and `appName` in deploy.js config instead of relying on environment variables.
breaking Node.js version 12 or above required. Older Node versions not supported. ↓
fix Upgrade Node.js to version 12+ (14 or 16+ recommended).
Install
npm install ember-cli-deploy-sentry-cli yarn add ember-cli-deploy-sentry-cli pnpm add ember-cli-deploy-sentry-cli Imports
- default (plugin config in deploy.js) wrong
// importing a symbol from the package (not needed)correct// config/deploy.js 'use strict'; module.exports = function(deployTarget) { return { 'sentry-cli': { appName: 'my-app', orgName: 'my-org', authToken: process.env.SENTRY_AUTH_TOKEN } }; };
Quickstart
// Install the plugin
ember install ember-cli-deploy-sentry-cli
// Enable sourcemaps in ember-cli-build.js
let app = new EmberApp(defaults, {
sourcemaps: {
enabled: true,
extensions: ['js']
}
});
// Add plugin config to config/deploy.js
'use strict';
module.exports = function(deployTarget) {
return {
'sentry-cli': {
appName: 'my-sentry-app',
orgName: 'my-sentry-org',
authToken: process.env.SENTRY_AUTH_TOKEN || '',
urlPrefix: '~/assets' // optional
}
};
};
// Optional: set revision type to version-commit in config/deploy.js
'revision-data': {
type: 'version-commit'
}