Lightcord/ci-deploy.js

8 lines
318 B
JavaScript
Raw Normal View History

2020-09-17 18:01:16 +02:00
const package = require("./package.json")
const child_process = require("child_process")
const version = package.version+"-"+Date.now()+ "-" + child_process.execSync("git rev-parse HEAD").toString().split("\n")[0].trim().slice(0, 7)
child_process.execSync("git tag "+version)
console.log(`Set up tag as ${version}`)