diff options
author | Gar <gar+gh@danger.computer> | 2022-09-12 19:03:31 +0300 |
---|---|---|
committer | Nathan Fritz <fritzy@github.com> | 2022-09-15 02:08:54 +0300 |
commit | c3d75499cfd4e3601c6ca31621b2f693af466c4d (patch) | |
tree | 994f312fd570df6e4ff04779fd3c3b797805a0a6 | |
parent | 9c32c6c8d6fc5bdfd6af685731fe26920d7e5446 (diff) |
fix: add tag to publish log message
-rw-r--r-- | lib/commands/publish.js | 5 | ||||
-rw-r--r-- | tap-snapshots/test/lib/commands/publish.js.test.cjs | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/lib/commands/publish.js b/lib/commands/publish.js index 3d17866a6..64b6dfc51 100644 --- a/lib/commands/publish.js +++ b/lib/commands/publish.js @@ -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)) diff --git a/tap-snapshots/test/lib/commands/publish.js.test.cjs b/tap-snapshots/test/lib/commands/publish.js.test.cjs index d85a1164e..3b215960f 100644 --- a/tap-snapshots/test/lib/commands/publish.js.test.cjs +++ b/tap-snapshots/test/lib/commands/publish.js.test.cjs @@ -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)", ], ] ` @@ -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", ], ] ` @@ -165,7 +165,7 @@ Array [ ], Array [ "", - "Publishing to https://registry.npmjs.org/", + "Publishing to https://registry.npmjs.org/ with tag latest", ], ] ` |