From 84a2552067c32edda3d630c2b19d18f4996674e8 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Thu, 14 Mar 2019 20:51:43 +0800 Subject: [PATCH] chore: prefix 'v' for version --- scripts/roll.sh | 5 ++++- src/analytics.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/roll.sh b/scripts/roll.sh index fba38d3..5a1fa0b 100755 --- a/scripts/roll.sh +++ b/scripts/roll.sh @@ -1,7 +1,10 @@ #!/bin/sh rm -rf dist NODE_ENV=production yarn webpack -GITAKO_VERSION=$(node scripts/get-version.js) + +git push + +GITAKO_VERSION=v$(node scripts/get-version.js) echo "Got version $GITAKO_VERSION" # sentry diff --git a/src/analytics.ts b/src/analytics.ts index 6d507f9..f7bbfef 100644 --- a/src/analytics.ts +++ b/src/analytics.ts @@ -8,7 +8,7 @@ const PROJECT_ID = '1406497' Sentry.init({ dsn: `https://${PUBLIC_KEY}@sentry.io/${PROJECT_ID}`, - release: version, + release: `v${version}`, environment: IN_PRODUCTION_MODE ? 'production' : 'development', })