Skip to content

Commit

Permalink
fix: add tag to publish log message
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar authored and fritzy committed Sep 14, 2022
1 parent 9c32c6c commit c3d7549
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion lib/commands/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ class Publish extends BaseCommand {
}
}

log.notice('', `Publishing to ${outputRegistry}${dryRun ? ' (dry-run)' : ''}`)
log.notice(
'',
`Publishing to ${outputRegistry} with tag ${defaultTag}${dryRun ? ' (dry-run)' : ''}`
)

if (!dryRun) {
await otplease(this.npm, opts, opts => libpub(manifest, tarballData, opts))
Expand Down
6 changes: 3 additions & 3 deletions tap-snapshots/test/lib/commands/publish.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Array [
],
Array [
"",
"Publishing to https://registry.npmjs.org/ (dry-run)",
"Publishing to https://registry.npmjs.org/ with tag latest (dry-run)",
],
]
`
Expand All @@ -72,7 +72,7 @@ exports[`test/lib/commands/publish.js TAP json > must match snapshot 1`] = `
Array [
Array [
"",
"Publishing to https://registry.npmjs.org/",
"Publishing to https://registry.npmjs.org/ with tag latest",
],
]
`
Expand Down Expand Up @@ -165,7 +165,7 @@ Array [
],
Array [
"",
"Publishing to https://registry.npmjs.org/",
"Publishing to https://registry.npmjs.org/ with tag latest",
],
]
`
Expand Down

0 comments on commit c3d7549

Please sign in to comment.