Commit c9a1117 1 parent 08d3314 commit c9a1117 Copy full SHA for c9a1117
File tree 2 files changed +2
-9
lines changed
2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 44
44
"analyze" : " source-map-explorer 'build/static/js/*.js'" ,
45
45
"start" : " react-scripts start" ,
46
46
"build" : " react-scripts build" ,
47
- "release" : " (export REACT_APP_SENTRY_RELEASE=$(git rev-parse --short HEAD); react-scripts build && node scripts/sentry.js)" ,
47
+ "release" : " react-scripts build && node scripts/sentry.js)" ,
48
48
"test" : " react-scripts test" ,
49
49
"eject" : " react-scripts eject"
50
50
},
Original file line number Diff line number Diff line change @@ -4,15 +4,8 @@ const fs = require("fs");
4
4
const fse = require ( "fs-extra" ) ;
5
5
6
6
async function createReleaseAndUpload ( ) {
7
- if ( ! process . env . REACT_APP_SENTRY_RELEASE ) {
8
- console . warn ( "REACT_APP_SENTRY_RELEASE is not set" ) ;
9
-
10
- return ;
11
- }
12
-
13
7
const date = new Date ( ) ;
14
- const time = `${ date . getFullYear ( ) } -${ date . getMonth ( ) + 1 } -${ date . getDate ( ) } ` ;
15
- const release = time + process . env . REACT_APP_SENTRY_RELEASE ;
8
+ const release = `${ date . getFullYear ( ) } -${ date . getMonth ( ) + 1 } -${ date . getDate ( ) } ` ;
16
9
17
10
const cli = new SentryCli ( ) ;
18
11
You can’t perform that action at this time.
0 commit comments