File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export async function publish(args) {
5454 }
5555
5656 if ( webhook ) {
57- let msg = `📦 **Publish package** \`${ packageJson . name } @ ${ packageJson . version } \`\n` ;
57+ let msg = `📦 **Publish package** \`${ packageJson . name } \`\n` ;
5858 msg += "```\n" ;
5959 msg += `Build time: ${ buildTime } \n` ;
6060 msg += `Short SHA: ${ shortSha } \n` ;
@@ -91,6 +91,9 @@ export async function publish(args) {
9191 nextVersion += `-${ shortSha } ` ;
9292 }
9393 }
94+ else {
95+ logger . info ( `Skipping commit hash in version as useCommitHash is false or shortSha is not available.` ) ;
96+ }
9497 if ( currentVersion !== nextVersion ) {
9598 // the package version can only be updated if it's different
9699 const cmd = `npm version ${ nextVersion } --no-git-tag-version` ;
@@ -99,6 +102,7 @@ export async function publish(args) {
99102 }
100103 // ensure the version is set correctly (it might have been modified in the meantime)
101104 packageJson . version = nextVersion ;
105+ logger . info ( `Updated package version to ${ packageJson . version } ` ) ;
102106 }
103107
104108
You can’t perform that action at this time.
0 commit comments