1
0
mirror of https://github.com/Lightcord/Lightcord.git synced 2025-04-12 00:55:40 +02:00
Lightcord/scripts/ci-deploy.js
hormelcookies 0816b1ef12 refactor install and build scripts
Change devInstall to use a script instead of a one-liner

Move all scripts to "scripts" directory.
2020-10-20 13:28:34 -07:00

8 lines
319 B
JavaScript

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}`)