Skip to content

Commit

Permalink
chore: add more logging to getVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
hasparus committed Sep 26, 2023
1 parent 2f27f7b commit e81549a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/publish-to-npm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ function getVersion(packageJson) {
.trim()
.slice(1) // remove leading "v"

console.log('Latest tag version:', latestTagVersion)
console.log('Root package.json version:', packageJson.version)
const version = semver.gt(packageJson.version, latestTagVersion)
? packageJson.version
: latestTagVersion
Expand Down

0 comments on commit e81549a

Please sign in to comment.