Skip to content

Commit

Permalink
fix: gen-version-info for release candidate tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mvayngrib committed Jul 21, 2018
1 parent f557f83 commit 56c49b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scripts/gen-version-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import proc from 'child_process'
const exec = (cmd: string) => proc.execSync(cmd, { encoding: 'utf8' }).trim()
const commit = exec(`git rev-parse HEAD`).slice(0, 8)
const { version } = require('../../package.json')
const [tag, commitsSinceTag] = exec(`git describe --long`).split('-')
const [tag, commitsSinceTag] = exec(`git describe --long`)
.match(/^(.*?)-(\d+)-g([^-]+)$/)
.slice(1)

const branch = exec(`git symbolic-ref --short HEAD`)
const info = {
commit,
Expand Down

0 comments on commit 56c49b3

Please sign in to comment.