Skip to content

This CLI simplifies some actions when publishing new a release of WEB application to Sentry.

Notifications You must be signed in to change notification settings

Sebbia/sentry-release-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sentry Release CLI

This CLI simplifies some actions when publishing new a release of WEB application to Sentry.

These actions is:

  • creating new release
  • uploading source maps
  • clean distributive from source maps

Requirements

  • Node >= 10
  • Tested on CRA atm

Install

cd my-web-app
npm i -D @sebbia/sentry-release-cli

Configure defaults

Create a file .sentryclirc inside your top level project directory with the followed content:

[defaults]
project=your-project-name-here
org=your-organisation-here
url=https://sentry.your-domain-here.com

Usage

To perform publish the new release you need to provide an authorization token.

This token can be acquired from Tokens group box in You project->Settings->Developer Settings->New integration.

sentry-release <command>

Commands:
  sentry-release publish            Publish build artefacts to Sentry
  sentry-release remove-sourcemaps  Remove source maps from build

Options:
  --help       Show help                                               [boolean]
  --version    Show version number                                     [boolean]
  -t, --tag    App version tag                                          [string]
  -b, --build  Path to build results               [string] [default: "./build"]

Example:

export SENTRY_AUTH_TOKEN=xxxxxxxxxxxxxxxxxx
npx sentry-release publish -t 1.0.0
npx sentry-release remove-sourcemaps

About

This CLI simplifies some actions when publishing new a release of WEB application to Sentry.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published