UNPKG

rtk

Version:

Agnostic software release tool for managing versions on changelog (keep-a-changelog), multi-format files (JSON, Makefile, text, TOML, YAML), and also for tagging source code of a Git repo

19 lines (16 loc) 365 B
"use strict"; import simpleGit from 'simple-git'; const _simpleGit = simpleGit(process.cwd()); function addVersion(version, cb) { _simpleGit.addTag(version, cb); } function saveChanges(message, paths, cb) { _simpleGit.commit(message, paths, {}, cb); } const exports = { addVersion: addVersion, saveChanges: saveChanges }; export { exports as default };