Skip to content

Commit

Permalink
feat: implement plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Nov 13, 2019
1 parent 3ed5d5c commit dde2ebf
Show file tree
Hide file tree
Showing 14 changed files with 622 additions and 196 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
before_script:
- npm i -g coveralls
script:
- npx nyc check-coverage --lines 85 --per-file
- npx nyc check-coverage --lines 100 --per-file
after_success:
- npx nyc report > lcov.info
- coveralls < lcov.info
Expand Down
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"editorconfig.editorconfig",
"dbaeumer.vscode-eslint",
"drknoxy.eslint-disable-snippets",
"wix.vscode-import-cost",
"esbenp.prettier-vscode"
]
}
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"[javascript]": {
"editor.formatOnSave": false
},
"javascript.validate.enable": true,
"javascript.implicitProjectConfig.checkJs": true,
"eslint.alwaysShowStatus": true,
"eslint.autoFixOnSave": true,
"debug.node.autoAttach": "on"
}
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[![Maintainability](https://api.codeclimate.com/v1/badges/f84f0bcb39c9a5c5fb99/maintainability)](https://codeclimate.com/github/eclass/semantic-release-sentry-releases/maintainability)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

> [semantic-release](https://github.com/semantic-release/semantic-release) plugin to deploy app
> [semantic-release](https://github.com/semantic-release/semantic-release) plugin to create releases in [sentry](https://docs.sentry.io/workflow/releases/?platform=browsernpm#create-release)
| Step | Description |
|--------------------|---------------------------------------------------------------------------------------------|
Expand Down Expand Up @@ -44,7 +44,15 @@ The plugin can be configured in the [**semantic-release** configuration file](ht

| Variable | Description |
| -------------------- | ----------------------------------------------------------------- |
| `CUSTOM_ENV` | A custom env var |
| `SENTRY_TOKEN` | Sentry token created in [profile](https://docs.sentry.io/api/auth/#id1) |
| `SENTRY_ORG` | Sentry orgnazitaion name |
| `SENTRY_PROJECT` | Sentry project name |

### Options

| Variable | Description |
| --------- | ----------------------------------------------------------------- |
| `tagsUrl` | A valid url for add link to new release. Optional. Ex: https://github.com/owner/repo/releases/tag/vx.y.z |

### Examples

Expand All @@ -55,7 +63,12 @@ The plugin can be configured in the [**semantic-release** configuration file](ht
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/gitlab",
"@eclass/semantic-release-sentry-releases"
[
"@eclass/semantic-release-sentry-releases",
{
"tagsUrl": "https://github.com/owner/repo/releases/tag/"
}
]
]
}
```
Expand Down
173 changes: 47 additions & 126 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dde2ebf

Please sign in to comment.