Skip to content

Commit fabf2ef

Browse files
committed
publish
1 parent 2beab30 commit fabf2ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/publish.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)