chore: prefix 'v' for version

This commit is contained in:
EnixCoda 2019-03-14 20:51:43 +08:00
parent cee198e036
commit 84a2552067
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

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