Skip to content

Commit 49c87cf

Browse files
committed
publish: create tag with "tag/version"
1 parent 02fc72d commit 49c87cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/publish.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,10 @@ export async function publish(args) {
236236

237237
if (args.createGitTag) {
238238

239-
const tagName = packageJson.version;
239+
let tagName = packageJson.version;
240+
if (args.tag) {
241+
tagName = `${args.tag}/${tagName}`;
242+
}
240243
let cmd = `git tag -a ${tagName} -m "Published ${packageJson.version}" && git push origin ${tagName}`;
241244

242245
// set username and email for git

0 commit comments

Comments
 (0)