| Server IP : 217.160.0.135 / Your IP : 216.73.217.37 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/node_modules/libnpmversion/lib/ |
Upload File : |
const git = require('@npmcli/git')
module.exports = async (version, opts) => {
const {
signGitTag,
allowSameVersion,
tagVersionPrefix,
message,
} = opts
const tag = `${tagVersionPrefix}${version}`
const flags = ['-']
if (signGitTag) {
flags.push('s')
}
if (allowSameVersion) {
flags.push('f')
}
flags.push('m')
return git.spawn([
'tag',
flags.join(''),
message.replace(/%s/g, version),
tag,
], opts)
}