Skip to content

Commit e600b42

Browse files
authored
fix(index.js): use blue figures.info for last checkpoint (#64)
so it doesn't look like something that was already done
1 parent 8ae428b commit e600b42

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ conventionalRecommendedBump({
7070
pkg.version = newVersion
7171
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n', 'utf-8')
7272
} else {
73-
console.log(chalk.red(figures.cross) + ' skip version bump on first release')
73+
checkpoint('skip version bump on first release', [], chalk.red(figures.cross))
7474
}
7575

7676
outputChangelog(argv, function () {
@@ -159,9 +159,9 @@ function tag (newVersion, argv) {
159159
console.log(chalk.red(errMessage))
160160
process.exit(1)
161161
} else {
162-
checkpoint('Run `%s` to publish.', [
162+
checkpoint('Run `%s` to publish', [
163163
'git push --follow-tags origin master; npm publish'
164-
])
164+
], chalk.blue(figures.info))
165165
}
166166
})
167167
}
@@ -178,8 +178,8 @@ function createIfMissing (argv) {
178178
}
179179
}
180180

181-
function checkpoint (msg, args) {
182-
console.info(chalk.green(figures.tick) + ' ' + util.format.apply(util, [msg].concat(args.map(function (arg) {
181+
function checkpoint (msg, args, figure) {
182+
console.info((figure || chalk.green(figures.tick)) + ' ' + util.format.apply(util, [msg].concat(args.map(function (arg) {
183183
return chalk.bold(arg)
184184
}))))
185185
};

0 commit comments

Comments
 (0)