Skip to content

Commit

Permalink
Merge branch 'notify-sentry2' into rc
Browse files Browse the repository at this point in the history
  • Loading branch information
schw4rzlicht committed Jun 16, 2020
2 parents 04ea7a7 + cc7577c commit 6dfb37a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .ci/generate-dotenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

if [[ "$1" = "undefined" ]]
then
echo "Posting production to .env" # DEBUG
echo "NODE_ENV=production" > .env
else
echo "Posting staging to .env" # DEBUG
echo "NODE_ENV=staging" > .env
fi
3 changes: 0 additions & 3 deletions .ci/notify-sentry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ curl -sL https://sentry.io/get-cli/ | bash

export SENTRY_RELEASE=$1

echo "Content of SENTRY_RELEASE: $SENTRY_RELEASE" # DEBUG
echo "Content of NODE_ENV: $NODE_ENV" # DEBUG

sentry-cli releases new -p $SENTRY_PROJECT $SENTRY_RELEASE
sentry-cli releases set-commits $SENTRY_RELEASE --auto
sentry-cli releases files $SENTRY_RELEASE upload-sourcemaps dist
Expand Down
1 change: 0 additions & 1 deletion .env

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
config.json
config.yml
.env
*.log
sentry.json
.idea
Expand Down
4 changes: 2 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ require("dotenv").config({
path: path.resolve(__dirname, ".env")
});

if(process.env.NODE_ENV === "production" && !packageInformation.version.match(/^\d+\.\d+.\d+$/)) {
process.env.NODE_ENV = "staging";
if(process.env.NODE_ENV === undefined) {
process.env.NODE_ENV = "development";
}

sentry.init(packageInformation);
Expand Down

0 comments on commit 6dfb37a

Please sign in to comment.