Skip to content

Commit

Permalink
add bump version script
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Jul 11, 2019
1 parent 9851bf4 commit 934f8b9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions prisma2/scripts/bump-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env node

const currentVersion = process.argv[2]

const lastDot = currentVersion.lastIndexOf('.')
const alphaNumber = currentVersion.slice(lastDot + 1)
const newVersion = currentVersion.slice(0, lastDot + 1) + (Number(alphaNumber) + 1)

console.log(newVersion)

0 comments on commit 934f8b9

Please sign in to comment.