fix: read package version as tag name while publishing npm package

This commit is contained in:
LongYinan 2020-09-07 21:53:07 +08:00
parent 8440c6893a
commit 51f71fbd92
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -123,7 +123,7 @@ export class PrePublishCommand extends Command {
} }
} else { } else {
pkgInfo = { pkgInfo = {
tag: `v${headCommit}`, tag: version,
version, version,
name: packageName, name: packageName,
} }