Upload SourceMaps only when on tag

This commit is contained in:
ziajka 2019-03-27 11:44:17 +01:00
parent 9a7290b7e7
commit d537a51b32

View File

@ -72,8 +72,11 @@ after_script:
# build sourcemaps and upload to Sentry # build sourcemaps and upload to Sentry
# fix node issue with memory # fix node issue with memory
- export NODE_OPTIONS=--max_old_space_size=4096 - |
- export RELEASE_VERSION=$(node -e "const fs = require('fs'); let p = fs.readFileSync('package.json'); console.log(JSON.parse(p).version);") if [ -n "$TRAVIS_TAG" ];
- yarn ng build --configuration=production --base-href /static/web-ui/ export NODE_OPTIONS=--max_old_space_size=4096
- yarn sentry-cli releases new $RELEASE_VERSION export RELEASE_VERSION=$(node -e "const fs = require('fs'); let p = fs.readFileSync('package.json'); console.log(JSON.parse(p).version);")
- yarn sentry-cli releases files $RELEASE_VERSION upload-sourcemaps dist/ yarn ng build --configuration=production --base-href /static/web-ui/
yarn sentry-cli releases new $RELEASE_VERSION
yarn sentry-cli releases files $RELEASE_VERSION upload-sourcemaps dist/
fi