Skip to content

Commit c9a1117

Browse files
committed
ci: 移除sentry git 版本 release 记录
1 parent 08d3314 commit c9a1117

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"analyze": "source-map-explorer 'build/static/js/*.js'",
4545
"start": "react-scripts start",
4646
"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)",
4848
"test": "react-scripts test",
4949
"eject": "react-scripts eject"
5050
},

scripts/sentry.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,8 @@ const fs = require("fs");
44
const fse = require("fs-extra");
55

66
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-
137
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()} `;
169

1710
const cli = new SentryCli();
1811

0 commit comments

Comments
 (0)