Skip to content

Commit 09de3f8

Browse files
committed
fix: add debug messages
1 parent 4005938 commit 09de3f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

getLastRelease.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ module.exports = function (pluginConfig, config, cb) {
1212

1313
const distTag = config.options.branchTags[branch];
1414
if (distTag) {
15+
console.log("Using 'latest' tag to fetch parent release.");
1516
// use 'latest' dist tag to determine what version will be published
1617
oldTag = config.npm.tag;
1718
config.npm.tag = "latest";
1819
}
1920

2021
return defaultLastRelease(pluginConfig, config, function(err, res) {
2122
if (distTag) {
23+
console.log(`Reverting back to ${oldTag} tag.`);
2224
config.npm.tag = oldTag;
2325
}
2426
cb(err, res);

0 commit comments

Comments
 (0)