this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 28 lines 758 B view raw
1import { exec } from "node:child_process"; 2import fs from "node:fs"; 3 4// Read the manifest.json file 5fs.readFile("manifest.json", "utf8", (err, data) => { 6 if (err) { 7 console.error(`Error reading file from disk: ${err}`); 8 } else { 9 // Parse the file content to a JavaScript object 10 const manifest = JSON.parse(data); 11 12 // Extract the version 13 const version = manifest.version; 14 15 // Execute the git commands 16 exec( 17 `git tag -a ${version} -m "${version}" && git push origin ${version}`, 18 (error, stdout, stderr) => { 19 if (error) { 20 console.error(`exec error: ${error}`); 21 return; 22 } 23 console.log(`stdout: ${stdout}`); 24 console.error(`stderr: ${stderr}`); 25 } 26 ); 27 } 28});