Skip to content

Commit

Permalink
test wrong version
Browse files Browse the repository at this point in the history
  • Loading branch information
mryanshenghong committed Nov 10, 2022
1 parent 098fff7 commit a7850a5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ NODE_ENV = 'development'
VITE_APP_TITLE = 'development'
VITE_APP_URL = "http://localhost:3002/api"
VITE_APP_RES_URL = 'http://localhost:8080/static'
VITE_APP_SENTRY_DSN = "https://15831ad310604e499e470c5a4e996af9@o4504130447736832.ingest.sentry.io/4504130451079168"
VITE_APP_SENTRY_DSN = "https://15831ad310604e499e470c5a4e996af9@o4504130447736832.ingest.sentry.io/4504130451079168"
2 changes: 1 addition & 1 deletion .env.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NODE_ENV = 'test'
VUE_APP_TITLE = 'test-build'
VUE_APP_URL = "http://localhost:3002/api"
VUE_APP_URL = "http://localhost:3002/api"
2 changes: 2 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
curl -sL https://sentry.io/get-cli/ | bash
export VERSION=$(echo `sentry-cli releases propose-version`)
echo "$VERSION"
sentry-cli releases new "$VERSION"
sentry-cli releases set-commits --auto "$VERSION"
sentry-cli releases files "$VERSION" upload-sourcemaps ./dist --url-prefix='http://blog.yanshenghong.com/'
find ./dist -name "*.map" -type f -print -exec rm -rf {} \;
sentry-cli releases finalize "$VERSION"
Expand Down
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Sentry.init({
app,
dsn: import.meta.env.VITE_APP_SENTRY_DSN,
attachProps: true,
release: `3.0.1`,
integrations: [
new BrowserTracing({
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
Expand Down

0 comments on commit a7850a5

Please sign in to comment.