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', })