From 51f71fbd92b1578a5a4f555d2925c9fdf91b1b98 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 7 Sep 2020 21:53:07 +0800 Subject: [PATCH] fix: read package version as tag name while publishing npm package --- src/pre-publish.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pre-publish.ts b/src/pre-publish.ts index b2cbfb4d..68500a3d 100644 --- a/src/pre-publish.ts +++ b/src/pre-publish.ts @@ -123,7 +123,7 @@ export class PrePublishCommand extends Command { } } else { pkgInfo = { - tag: `v${headCommit}`, + tag: version, version, name: packageName, }