@@ -345,7 +345,7 @@ def check_python(dist_dir):
345
345
def build_npm (package , dist_dir ):
346
346
"""Build npm package"""
347
347
if not osp .exists ("./package.json" ):
348
- util .log ("Skipping check -npm since there is no package.json file" )
348
+ util .log ("Skipping build -npm since there is no package.json file" )
349
349
return
350
350
npm .build_dist (package , dist_dir )
351
351
@@ -410,6 +410,12 @@ def check_links(ignore_glob, ignore_links, cache_file, links_expire):
410
410
default = "Publish {version}" ,
411
411
help = "The message to use for the release commit" ,
412
412
)
413
+ @click .option (
414
+ "--tag-format" ,
415
+ envvar = "RH_TAG_FORMAT" ,
416
+ default = "v{version}" ,
417
+ help = "The format to use for the release tag" ,
418
+ )
413
419
@click .option (
414
420
"--tag-message" ,
415
421
envvar = "RH_TAG_MESSAGE" ,
@@ -422,9 +428,13 @@ def check_links(ignore_glob, ignore_links, cache_file, links_expire):
422
428
help = "Whether to skip tagging npm workspace packages" ,
423
429
)
424
430
@use_checkout_dir ()
425
- def tag_release (dist_dir , release_message , tag_message , no_git_tag_workspace ):
431
+ def tag_release (
432
+ dist_dir , release_message , tag_format , tag_message , no_git_tag_workspace
433
+ ):
426
434
"""Create release commit and tag"""
427
- lib .tag_release (dist_dir , release_message , tag_message , no_git_tag_workspace )
435
+ lib .tag_release (
436
+ dist_dir , release_message , tag_format , tag_message , no_git_tag_workspace
437
+ )
428
438
429
439
430
440
@main .command ()
0 commit comments