File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 35
35
36
36
# Fix $HOME perms to make Firefox happy
37
37
chown $(whoami) $HOME
38
+
38
39
- run : npm run build
40
+ env :
41
+ SENTRY_AUTH_TOKEN : ${{ (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && secrets.SENTRY_AUTH_TOKEN) || '' }}
42
+ SENTRY_ORG : http-toolkit
43
+ SENTRY_PROJECT : httptoolkit-server
44
+
39
45
- run : xvfb-run npm run test
40
46
- run : xvfb-run npm run test:release
41
47
Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ const pjson = require('./package.json');
7
7
8
8
const OUTPUT_DIR = path . resolve ( __dirname , 'bundle' ) ;
9
9
10
+ console . log (
11
+ process . env . SENTRY_AUTH_TOKEN
12
+ ? "* Webpack will upload source map to Sentry *"
13
+ : "Sentry source map upload disabled - no token set"
14
+ ) ;
15
+
10
16
module . exports = {
11
17
entry : {
12
18
index : './src/index.ts' ,
You can’t perform that action at this time.
0 commit comments